Browse Source

Revert "[video_core, texture_cache] Set UpdateRenderTargets to is_clear, to avoid unneccesary calls of clear function + rescaled render target."

pull/3322/head
CamilleLaVey 3 weeks ago
committed by crueter
parent
commit
d1e10abfcf
  1. 2
      src/video_core/texture_cache/texture_cache.h

2
src/video_core/texture_cache/texture_cache.h

@ -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));

Loading…
Cancel
Save