From 877a36e05a774846346d0d4fe7e19d823488a668 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 29 Oct 2002 21:04:07 +0000 Subject: [PATCH] fix for use of cubemaps on hardware without 3d texture support git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2587 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_backend.c b/gl_backend.c index 8f681d23..9ce7459d 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -366,7 +366,7 @@ void GL_SetupTextureState(void) unit->combinealpha = GL_MODULATE; unit->arrayenabled = false; qglDisableClientState(GL_TEXTURE_COORD_ARRAY);CHECKGLERROR - if (gl_texture3d) + if (gl_texture3d || gl_texturecubemap) { qglTexCoordPointer(3, GL_FLOAT, sizeof(float[4]), varray_texcoord[i]);CHECKGLERROR } -- 2.39.2