From e55fed219712074c83b55aa127a83da6f39bebb7 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Fri, 28 Dec 2001 21:47:32 +0000 Subject: [PATCH] Oops, needs to work for non-OpenGL 1.3 as well. ;) --- ref_gl/gl_image.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ref_gl/gl_image.c b/ref_gl/gl_image.c index 24178ba..eecad09 100644 --- a/ref_gl/gl_image.c +++ b/ref_gl/gl_image.c @@ -74,17 +74,17 @@ void GL_EnableMultitexture( qboolean enable ) if ( enable ) { - GL_SelectTexture( GL_TEXTURE1 ); + GL_SelectTexture( GL_Texture1 ); qglEnable( GL_TEXTURE_2D ); GL_TexEnv( GL_REPLACE ); } else { - GL_SelectTexture( GL_TEXTURE1 ); + GL_SelectTexture( GL_Texture1 ); qglDisable( GL_TEXTURE_2D ); GL_TexEnv( GL_REPLACE ); } - GL_SelectTexture( GL_TEXTURE0 ); + GL_SelectTexture( GL_Texture0 ); GL_TexEnv( GL_REPLACE ); } @@ -95,7 +95,7 @@ void GL_SelectTexture( GLenum texture ) if ( !qglSelectTextureSGIS && !qglActiveTextureARB ) return; - if ( texture == GL_TEXTURE0 ) + if ( texture == GL_Texture0 ) { tmu = 0; } @@ -148,7 +148,7 @@ void GL_Bind (int texnum) void GL_MBind( GLenum target, int texnum ) { GL_SelectTexture( target ); - if ( target == GL_TEXTURE0 ) + if ( target == GL_Texture0 ) { if ( gl_state.currenttextures[0] == texnum ) return;