Revert to r2882 since it awfully broke Castlevania games (possibly other games as well).
The reasons I replaced GL_GREATER with GL_GEQUAL in r2883 are: 1. gbatek says "Hide pixels if Alpha<AlphaRef" 2. rasterizer also says "if(shaderOutput.a < gfx3d.alphaTestRef) goto rejected_fragment;"
This commit is contained in:
parent
e524718237
commit
084dfbf703
|
@ -399,7 +399,7 @@ static char OGLInit(void)
|
||||||
glEnable (GL_TEXTURE_1D);
|
glEnable (GL_TEXTURE_1D);
|
||||||
glEnable (GL_TEXTURE_2D);
|
glEnable (GL_TEXTURE_2D);
|
||||||
|
|
||||||
glAlphaFunc (GL_GEQUAL, 0);
|
glAlphaFunc (GL_GREATER, 0);
|
||||||
xglEnable (GL_ALPHA_TEST);
|
xglEnable (GL_ALPHA_TEST);
|
||||||
|
|
||||||
glViewport(0, 0, 256, 192);
|
glViewport(0, 0, 256, 192);
|
||||||
|
@ -666,9 +666,9 @@ static void Control()
|
||||||
else glDisable (GL_TEXTURE_2D);
|
else glDisable (GL_TEXTURE_2D);
|
||||||
|
|
||||||
if(gfx3d.enableAlphaTest)
|
if(gfx3d.enableAlphaTest)
|
||||||
glAlphaFunc (GL_GEQUAL, gfx3d.alphaTestRef/31.f);
|
glAlphaFunc (GL_GREATER, gfx3d.alphaTestRef/31.f);
|
||||||
else
|
else
|
||||||
glAlphaFunc (GL_GEQUAL, 0);
|
glAlphaFunc (GL_GREATER, 0);
|
||||||
|
|
||||||
if(gfx3d.enableAlphaBlending)
|
if(gfx3d.enableAlphaBlending)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue