forked from ShuriZma/suyu
1
0
Fork 0

Texture Cache: Fix memory usage on ScaleDown.

This commit is contained in:
FernandoS27 2021-10-23 17:17:02 +02:00 committed by Fernando Sahmkow
parent 9189aacfe2
commit 099b0b3167
1 changed files with 0 additions and 4 deletions

View File

@ -878,10 +878,6 @@ bool TextureCache<P>::ScaleDown(Image& image) {
if (!rescaled) { if (!rescaled) {
return false; return false;
} }
const bool has_copy = image.HasScaled();
if (!has_copy) {
total_used_memory -= GetScaledImageSizeBytes(image);
}
InvalidateScale(image); InvalidateScale(image);
return true; return true;
} }