summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2021-10-23 17:17:02 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-16 22:11:33 +0100
commit099b0b3167d6dc47b764331f40aa935e8a9ef86a (patch)
treef1694a951c0e45d3586661c1dd58fa1f76d3414d /src
parentOpenGL: Fix viewport/Scissor scaling on downscaling. (diff)
downloadyuzu-099b0b3167d6dc47b764331f40aa935e8a9ef86a.tar
yuzu-099b0b3167d6dc47b764331f40aa935e8a9ef86a.tar.gz
yuzu-099b0b3167d6dc47b764331f40aa935e8a9ef86a.tar.bz2
yuzu-099b0b3167d6dc47b764331f40aa935e8a9ef86a.tar.lz
yuzu-099b0b3167d6dc47b764331f40aa935e8a9ef86a.tar.xz
yuzu-099b0b3167d6dc47b764331f40aa935e8a9ef86a.tar.zst
yuzu-099b0b3167d6dc47b764331f40aa935e8a9ef86a.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/texture_cache/texture_cache.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index dd9553806..26ab857c9 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -878,10 +878,6 @@ bool TextureCache<P>::ScaleDown(Image& image) {
if (!rescaled) {
return false;
}
- const bool has_copy = image.HasScaled();
- if (!has_copy) {
- total_used_memory -= GetScaledImageSizeBytes(image);
- }
InvalidateScale(image);
return true;
}