aboutsummaryrefslogtreecommitdiffstats
path: root/code/renderer/tr_image.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-09-10 22:28:58 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-09-10 22:28:58 +0000
commit33d0f20bb57a17ffe51b337a3d353fc6a18ce72e (patch)
treedbf5139a63bb05f3f8ef306af0c29101b05332cb /code/renderer/tr_image.c
parenta5692b8d3f5757e9feb502c448183275de16f3bc (diff)
downloadioquake3-aero-33d0f20bb57a17ffe51b337a3d353fc6a18ce72e.tar.gz
ioquake3-aero-33d0f20bb57a17ffe51b337a3d353fc6a18ce72e.zip
* Remove use of GL_ARB_multitexture since this has been part of the
core API for many years now git-svn-id: svn://svn.icculus.org/quake3/trunk@1176 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/renderer/tr_image.c')
-rw-r--r--code/renderer/tr_image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/code/renderer/tr_image.c b/code/renderer/tr_image.c
index 37b91c2..1ec33da 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 ( qglActiveTextureARB && isLightmap ) {
+ if ( glConfig.numTextureUnits > 1 && isLightmap ) {
image->TMU = 1;
} else {
image->TMU = 0;
}
- if ( qglActiveTextureARB ) {
+ if ( glConfig.numTextureUnits > 1 ) {
GL_SelectTexture( image->TMU );
}
@@ -4849,7 +4849,7 @@ void R_DeleteTextures( void ) {
tr.numImages = 0;
Com_Memset( glState.currenttextures, 0, sizeof( glState.currenttextures ) );
- if ( qglActiveTextureARB ) {
+ if ( glConfig.numTextureUnits > 1 ) {
GL_SelectTexture( 1 );
qglBindTexture( GL_TEXTURE_2D, 0 );
GL_SelectTexture( 0 );