From: havoc Date: Tue, 29 Oct 2002 21:04:07 +0000 (+0000) Subject: fix for use of cubemaps on hardware without 3d texture support X-Git-Tag: RELEASE_0_2_0_RC1~97 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=877a36e05a774846346d0d4fe7e19d823488a668;p=xonotic%2Fdarkplaces.git 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 --- 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 }