fix for use of cubemaps on hardware without 3d texture support
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Oct 2002 21:04:07 +0000 (21:04 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Oct 2002 21:04:07 +0000 (21:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2587 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index 8f681d2..9ce7459 100644 (file)
@@ -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
                }