mirror of https://github.com/PCSX2/pcsx2.git
GSState: Minimum texture size is 1x1, not 2x2
Fixes out of bounds uploads when full mipmapping is enabled.
This commit is contained in:
parent
4194553450
commit
6182b46033
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue