|
|
|
@ -496,7 +496,7 @@ template <class P> |
|
|
|
void TextureCache<P>::UpdateRenderTargets(bool is_clear) { |
|
|
|
using namespace VideoCommon::Dirty; |
|
|
|
auto& flags = maxwell3d->dirty.flags; |
|
|
|
if (is_clear || !flags[Dirty::RenderTargets]) { |
|
|
|
if (!flags[Dirty::RenderTargets]) { |
|
|
|
for (size_t index = 0; index < NUM_RT; ++index) { |
|
|
|
ImageViewId& color_buffer_id = render_targets.color_buffer_ids[index]; |
|
|
|
PrepareImageView(color_buffer_id, true, is_clear && IsFullClear(color_buffer_id)); |
|
|
|
@ -506,11 +506,14 @@ void TextureCache<P>::UpdateRenderTargets(bool is_clear) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
const bool rescaled = RescaleRenderTargets(); |
|
|
|
if (is_rescaling != rescaled) { |
|
|
|
flags[Dirty::RescaleViewports] = true; |
|
|
|
flags[Dirty::RescaleScissors] = true; |
|
|
|
is_rescaling = rescaled; |
|
|
|
bool rescaled = is_rescaling; |
|
|
|
if (!is_clear) { |
|
|
|
rescaled = RescaleRenderTargets(); |
|
|
|
if (is_rescaling != rescaled) { |
|
|
|
flags[Dirty::RescaleViewports] = true; |
|
|
|
flags[Dirty::RescaleScissors] = true; |
|
|
|
is_rescaling = rescaled; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
for (size_t index = 0; index < NUM_RT; ++index) { |
|
|
|
|