From e52471823766f9f8d01f7f71ba6bf4639e66b8f3 Mon Sep 17 00:00:00 2001 From: gocha Date: Wed, 16 Sep 2009 11:01:14 +0000 Subject: [PATCH] OGLRender: Replaced GL_GREATER with GL_GEQUAL --- desmume/src/OGLRender.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index 473db91b0..9abb8dd31 100644 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -399,7 +399,7 @@ static char OGLInit(void) glEnable (GL_TEXTURE_1D); glEnable (GL_TEXTURE_2D); - glAlphaFunc (GL_GREATER, 0); + glAlphaFunc (GL_GEQUAL, 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_GREATER, gfx3d.alphaTestRef/31.f); + glAlphaFunc (GL_GEQUAL, gfx3d.alphaTestRef/31.f); else - glAlphaFunc (GL_GREATER, 0); + glAlphaFunc (GL_GEQUAL, 0); if(gfx3d.enableAlphaBlending) {