diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 01de2d498..85ce06d56 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h | |||
| @@ -599,6 +599,12 @@ void TextureCache<P>::UpdateRenderTargets(bool is_clear) { | |||
| 599 | using namespace VideoCommon::Dirty; | 599 | using namespace VideoCommon::Dirty; |
| 600 | auto& flags = maxwell3d.dirty.flags; | 600 | auto& flags = maxwell3d.dirty.flags; |
| 601 | if (!flags[Dirty::RenderTargets]) { | 601 | if (!flags[Dirty::RenderTargets]) { |
| 602 | for (size_t index = 0; index < NUM_RT; ++index) { | ||
| 603 | ImageViewId& color_buffer_id = render_targets.color_buffer_ids[index]; | ||
| 604 | PrepareImageView(color_buffer_id, true, is_clear && IsFullClear(color_buffer_id)); | ||
| 605 | } | ||
| 606 | const ImageViewId depth_buffer_id = render_targets.depth_buffer_id; | ||
| 607 | PrepareImageView(depth_buffer_id, true, is_clear && IsFullClear(depth_buffer_id)); | ||
| 602 | return; | 608 | return; |
| 603 | } | 609 | } |
| 604 | flags[Dirty::RenderTargets] = false; | 610 | flags[Dirty::RenderTargets] = false; |