diff options
Diffstat (limited to 'code/renderer/tr_image.c')
-rw-r--r-- | code/renderer/tr_image.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/code/renderer/tr_image.c b/code/renderer/tr_image.c index 1ec33da..37b91c2 100644 --- a/code/renderer/tr_image.c +++ b/code/renderer/tr_image.c @@ -765,13 +765,13 @@ image_t *R_CreateImage( const char *name, const byte *pic, int width, int height image->wrapClampMode = glWrapClampMode; // lightmaps are always allocated on TMU 1 - if ( glConfig.numTextureUnits > 1 && isLightmap ) { + if ( qglActiveTextureARB && isLightmap ) { image->TMU = 1; } else { image->TMU = 0; } - if ( glConfig.numTextureUnits > 1 ) { + if ( qglActiveTextureARB ) { GL_SelectTexture( image->TMU ); } @@ -4849,7 +4849,7 @@ void R_DeleteTextures( void ) { tr.numImages = 0; Com_Memset( glState.currenttextures, 0, sizeof( glState.currenttextures ) ); - if ( glConfig.numTextureUnits > 1 ) { + if ( qglActiveTextureARB ) { GL_SelectTexture( 1 ); qglBindTexture( GL_TEXTURE_2D, 0 ); GL_SelectTexture( 0 ); |