]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
depth texture mode fixes
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 1 Oct 2009 01:32:42 +0000 (01:32 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 1 Oct 2009 01:32:42 +0000 (01:32 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9266 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index 3f9a3ba6527ed8066ccd0b47868323308064fcd2..0a3f2cb16a04199fbd1bd0fb967ab930e9dbf053 100644 (file)
@@ -788,14 +788,13 @@ static void GL_SetupTextureParameters(int flags, textype_t textype, int texturet
                if (flags & TEXF_COMPARE)
                {
                        qglTexParameteri(textureenum, GL_TEXTURE_COMPARE_MODE_ARB, GL_COMPARE_R_TO_TEXTURE_ARB);CHECKGLERROR
-                       qglTexParameteri(textureenum, GL_TEXTURE_COMPARE_FUNC_ARB, GL_LEQUAL);CHECKGLERROR
                }
                else
                {
                        qglTexParameteri(textureenum, GL_TEXTURE_COMPARE_MODE_ARB, GL_NONE);CHECKGLERROR
-                       qglTexParameteri(textureenum, GL_TEXTURE_COMPARE_FUNC_ARB, GL_ALWAYS);CHECKGLERROR
                }
-               qglTexParameteri(textureenum, GL_DEPTH_TEXTURE_MODE_ARB, GL_INTENSITY);CHECKGLERROR
+               qglTexParameteri(textureenum, GL_TEXTURE_COMPARE_FUNC_ARB, GL_LEQUAL);CHECKGLERROR
+               qglTexParameteri(textureenum, GL_DEPTH_TEXTURE_MODE_ARB, GL_LUMINANCE);CHECKGLERROR
        }
 
        CHECKGLERROR