From 55c24b7d36d7007b951bf18d83ea59540154f5a6 Mon Sep 17 00:00:00 2001 From: eihrul Date: Thu, 1 Oct 2009 01:32:42 +0000 Subject: [PATCH] depth texture mode fixes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9266 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_textures.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gl_textures.c b/gl_textures.c index 3f9a3ba6..0a3f2cb1 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -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 -- 2.39.2