* Revert 1176 -- MinGW's headers are too old *sigh*

* Revert to using literal function pointers for GL extensions rather than PFN*
  typedefs as some platforms' headers are broken enough that they prevent
  SDL_opengl.h from fixing things up if the PFN* typedefs are missing
This commit is contained in:
Tim Angus 2007-09-12 18:02:38 +00:00
parent 4f4f0c0dab
commit 1d54a9ebe5
8 changed files with 75 additions and 46 deletions

View file

@ -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 );