mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Code cleanup: remove duplicated code in OGL_UpdateStates().
This commit is contained in:
parent
70417de37c
commit
fe550b7b6b
20
OpenGL.cpp
20
OpenGL.cpp
|
@ -692,30 +692,18 @@ void OGL_UpdateStates()
|
||||||
Combiner_BeginTextureUpdate();
|
Combiner_BeginTextureUpdate();
|
||||||
|
|
||||||
if (combiner.usesT0)
|
if (combiner.usesT0)
|
||||||
{
|
|
||||||
TextureCache_Update( 0 );
|
TextureCache_Update( 0 );
|
||||||
|
|
||||||
gSP.changed &= ~CHANGED_TEXTURE;
|
|
||||||
gDP.changed &= ~CHANGED_TILE;
|
|
||||||
gDP.changed &= ~CHANGED_TMEM;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
TextureCache_ActivateDummy( 0 );
|
TextureCache_ActivateDummy( 0 );
|
||||||
}
|
|
||||||
|
|
||||||
if (combiner.usesT1)
|
if (combiner.usesT1)
|
||||||
{
|
|
||||||
TextureCache_Update( 1 );
|
TextureCache_Update( 1 );
|
||||||
|
|
||||||
gSP.changed &= ~CHANGED_TEXTURE;
|
|
||||||
gDP.changed &= ~CHANGED_TILE;
|
|
||||||
gDP.changed &= ~CHANGED_TMEM;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
TextureCache_ActivateDummy( 1 );
|
TextureCache_ActivateDummy( 1 );
|
||||||
}
|
|
||||||
|
gSP.changed &= ~CHANGED_TEXTURE;
|
||||||
|
gDP.changed &= ~CHANGED_TILE;
|
||||||
|
gDP.changed &= ~CHANGED_TMEM;
|
||||||
|
|
||||||
Combiner_EndTextureUpdate();
|
Combiner_EndTextureUpdate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user