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:
gocha 2009-09-16 13:57:37 +00:00
parent e524718237
commit 084dfbf703
1 changed files with 3 additions and 3 deletions

View File

@ -399,7 +399,7 @@ static char OGLInit(void)
glEnable (GL_TEXTURE_1D);
glEnable (GL_TEXTURE_2D);
glAlphaFunc (GL_GEQUAL, 0);
glAlphaFunc (GL_GREATER, 0);
xglEnable (GL_ALPHA_TEST);
glViewport(0, 0, 256, 192);
@ -666,9 +666,9 @@ static void Control()
else glDisable (GL_TEXTURE_2D);
if(gfx3d.enableAlphaTest)
glAlphaFunc (GL_GEQUAL, gfx3d.alphaTestRef/31.f);
glAlphaFunc (GL_GREATER, gfx3d.alphaTestRef/31.f);
else
glAlphaFunc (GL_GEQUAL, 0);
glAlphaFunc (GL_GREATER, 0);
if(gfx3d.enableAlphaBlending)
{