* 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
|
@ -71,17 +71,17 @@ void GL_SelectTexture( int unit )
|
|||
|
||||
if ( unit == 0 )
|
||||
{
|
||||
qglActiveTexture( GL_TEXTURE0 );
|
||||
GLimp_LogComment( "glActiveTexture( GL_TEXTURE0 )\n" );
|
||||
qglClientActiveTexture( GL_TEXTURE0 );
|
||||
GLimp_LogComment( "glClientActiveTexture( GL_TEXTURE0 )\n" );
|
||||
qglActiveTextureARB( GL_TEXTURE0_ARB );
|
||||
GLimp_LogComment( "glActiveTextureARB( GL_TEXTURE0_ARB )\n" );
|
||||
qglClientActiveTextureARB( GL_TEXTURE0_ARB );
|
||||
GLimp_LogComment( "glClientActiveTextureARB( GL_TEXTURE0_ARB )\n" );
|
||||
}
|
||||
else if ( unit == 1 )
|
||||
{
|
||||
qglActiveTexture( GL_TEXTURE1 );
|
||||
GLimp_LogComment( "glActiveTexture( GL_TEXTURE1 )\n" );
|
||||
qglClientActiveTexture( GL_TEXTURE1 );
|
||||
GLimp_LogComment( "glClientActiveTexture( GL_TEXTURE1 )\n" );
|
||||
qglActiveTextureARB( GL_TEXTURE1_ARB );
|
||||
GLimp_LogComment( "glActiveTextureARB( GL_TEXTURE1_ARB )\n" );
|
||||
qglClientActiveTextureARB( GL_TEXTURE1_ARB );
|
||||
GLimp_LogComment( "glClientActiveTextureARB( GL_TEXTURE1_ARB )\n" );
|
||||
} else {
|
||||
ri.Error( ERR_DROP, "GL_SelectTexture: unit = %i", unit );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue