1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Correct condition for calling Combiner_UpdateAlphaTestInfo().

This commit is contained in:
Sergey Lipskiy 2014-05-02 00:35:16 +07:00
parent c282045c27
commit 47d322741d
3 changed files with 3 additions and 1 deletions

View File

@ -744,7 +744,7 @@ void OGL_UpdateStates()
}
}
if ((gDP.changed & CHANGED_ALPHACOMPARE) || (gDP.changed & CHANGED_RENDERMODE))
if ((gDP.changed & (CHANGED_ALPHACOMPARE|CHANGED_RENDERMODE|CHANGED_BLENDCOLOR)) != 0)
Combiner_UpdateAlphaTestInfo();
if (gDP.changed & CHANGED_SCISSOR)

View File

@ -350,6 +350,7 @@ void gDPSetBlendColor( u32 r, u32 g, u32 b, u32 a )
gDP.blendColor.b = b * 0.0039215689f;
gDP.blendColor.a = a * 0.0039215689f;
gDP.changed |= CHANGED_BLENDCOLOR;
#ifdef DEBUG
DebugMsg( DEBUG_HIGH | DEBUG_HANDLED, "gDPSetBlendColor( %i, %i, %i, %i );\n",
r, g, b, a );

1
gDP.h
View File

@ -13,6 +13,7 @@
#define CHANGED_ALPHACOMPARE 0x080
#define CHANGED_FOGCOLOR 0x100
#define CHANGED_FB_TEXTURE 0x200
#define CHANGED_BLENDCOLOR 0x2000
#define TEXTUREMODE_NORMAL 0
#define TEXTUREMODE_TEXRECT 1