GSState: Minimum texture size is 1x1, not 2x2

Fixes out of bounds uploads when full mipmapping is enabled.
This commit is contained in:
Connor McLaughlin 2022-01-09 15:22:23 +10:00 committed by lightningterror
parent 4194553450
commit 6182b46033
1 changed files with 2 additions and 2 deletions

View File

@ -3014,12 +3014,12 @@ GIFRegTEX0 GSState::GetTex0Layer(u32 lod)
// Correct the texture size // Correct the texture size
if (TEX0.TH <= lod) if (TEX0.TH <= lod)
TEX0.TH = 1; TEX0.TH = 0;
else else
TEX0.TH -= lod; TEX0.TH -= lod;
if (TEX0.TW <= lod) if (TEX0.TW <= lod)
TEX0.TW = 1; TEX0.TW = 0;
else else
TEX0.TW -= lod; TEX0.TW -= lod;