mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
Texture Cache: Fix memory usage on ScaleDown.
This commit is contained in:
parent
9189aacfe2
commit
099b0b3167
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user