mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Correct gSPTexture: don't update texture parameters when texturing is off.
This commit is contained in:
parent
0c5872897d
commit
7914c415ad
5
gSP.cpp
5
gSP.cpp
|
@ -1687,6 +1687,10 @@ void gSPCoordMod(u32 _w0, u32 _w1)
|
|||
|
||||
void gSPTexture( f32 sc, f32 tc, s32 level, s32 tile, s32 on )
|
||||
{
|
||||
gSP.texture.on = on;
|
||||
if (on == 0)
|
||||
return;
|
||||
|
||||
gSP.texture.scales = sc;
|
||||
gSP.texture.scalet = tc;
|
||||
|
||||
|
@ -1694,7 +1698,6 @@ void gSPTexture( f32 sc, f32 tc, s32 level, s32 tile, s32 on )
|
|||
if (gSP.texture.scalet == 0.0f) gSP.texture.scalet = 1.0f;
|
||||
|
||||
gSP.texture.level = level;
|
||||
gSP.texture.on = on;
|
||||
|
||||
gSP.texture.tile = tile;
|
||||
gSP.textureTile[0] = &gDP.tiles[tile];
|
||||
|
|
Loading…
Reference in New Issue
Block a user