Skip to content

Commit

Permalink
GSState: Minimum texture size is 1x1, not 2x2
Browse files Browse the repository at this point in the history
Fixes out of bounds uploads when full mipmapping is enabled.
  • Loading branch information
stenzek authored and lightningterror committed Jan 11, 2022
1 parent 4194553 commit 6182b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pcsx2/GS/GSState.cpp
Expand Up @@ -3014,12 +3014,12 @@ GIFRegTEX0 GSState::GetTex0Layer(u32 lod)

// Correct the texture size
if (TEX0.TH <= lod)
TEX0.TH = 1;
TEX0.TH = 0;
else
TEX0.TH -= lod;

if (TEX0.TW <= lod)
TEX0.TW = 1;
TEX0.TW = 0;
else
TEX0.TW -= lod;

Expand Down

0 comments on commit 6182b46

Please sign in to comment.