mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix getTextureShiftScale for case of one-level mip-map.
Fixed guard rail in Banjo Kazooie, #158
This commit is contained in:
parent
1dc2bd1a56
commit
74afd9f114
|
@ -1433,6 +1433,9 @@ void getTextureShiftScale(u32 t, const TextureCache & cache, f32 & shiftScaleS,
|
|||
return;
|
||||
}
|
||||
|
||||
if (gDP.otherMode.textureLOD == G_TL_LOD && gSP.texture.level == gSP.texture.tile)
|
||||
t = 0;
|
||||
|
||||
if (gSP.textureTile[t]->shifts > 10)
|
||||
shiftScaleS = (f32)(1 << (16 - gSP.textureTile[t]->shifts));
|
||||
else if (gSP.textureTile[t]->shifts > 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user