diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-04-15 12:29:49 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 21:00:53 +0200 |
commit | ada09778d97d39d83353ca54d0d6c9abd5eefc60 (patch) | |
tree | 88758ebac615e8f835cd0f3487e313ec01fa5a6b /src/video_core/texture_cache/texture_cache.h | |
parent | ImageBase: Basic fixes. (diff) | |
download | yuzu-ada09778d97d39d83353ca54d0d6c9abd5eefc60.tar yuzu-ada09778d97d39d83353ca54d0d6c9abd5eefc60.tar.gz yuzu-ada09778d97d39d83353ca54d0d6c9abd5eefc60.tar.bz2 yuzu-ada09778d97d39d83353ca54d0d6c9abd5eefc60.tar.lz yuzu-ada09778d97d39d83353ca54d0d6c9abd5eefc60.tar.xz yuzu-ada09778d97d39d83353ca54d0d6c9abd5eefc60.tar.zst yuzu-ada09778d97d39d83353ca54d0d6c9abd5eefc60.zip |
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 66de41f04..9a835cefc 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -357,6 +357,7 @@ void TextureCache<P>::UpdateRenderTargets(bool is_clear) { (maxwell3d->regs.render_area.width * up_scale) >> down_shift, (maxwell3d->regs.render_area.height * up_scale) >> down_shift, }; + render_targets.is_rescaled = is_rescaling; flags[Dirty::DepthBiasGlobal] = true; } @@ -1962,6 +1963,7 @@ std::pair<FramebufferId, ImageViewId> TextureCache<P>::RenderTargetFromImage( .color_buffer_ids = {color_view_id}, .depth_buffer_id = depth_view_id, .size = {extent.width >> samples_x, extent.height >> samples_y}, + .is_rescaled = is_rescaled, }); return {framebuffer_id, view_id}; } |