* 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:
parent
4f4f0c0dab
commit
1d54a9ebe5
8 changed files with 75 additions and 46 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue