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;