mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-12-12 13:42:21 +00:00
Oops, needs to work for non-OpenGL 1.3 as well. ;)
This commit is contained in:
parent
377a168dea
commit
e55fed2197
1 changed files with 5 additions and 5 deletions
|
@ -74,17 +74,17 @@ void GL_EnableMultitexture( qboolean enable )
|
|||
|
||||
if ( enable )
|
||||
{
|
||||
GL_SelectTexture( GL_TEXTURE1 );
|
||||
GL_SelectTexture( GL_Texture1 );
|
||||
qglEnable( GL_TEXTURE_2D );
|
||||
GL_TexEnv( GL_REPLACE );
|
||||
}
|
||||
else
|
||||
{
|
||||
GL_SelectTexture( GL_TEXTURE1 );
|
||||
GL_SelectTexture( GL_Texture1 );
|
||||
qglDisable( GL_TEXTURE_2D );
|
||||
GL_TexEnv( GL_REPLACE );
|
||||
}
|
||||
GL_SelectTexture( GL_TEXTURE0 );
|
||||
GL_SelectTexture( GL_Texture0 );
|
||||
GL_TexEnv( GL_REPLACE );
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,7 @@ void GL_SelectTexture( GLenum texture )
|
|||
if ( !qglSelectTextureSGIS && !qglActiveTextureARB )
|
||||
return;
|
||||
|
||||
if ( texture == GL_TEXTURE0 )
|
||||
if ( texture == GL_Texture0 )
|
||||
{
|
||||
tmu = 0;
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ void GL_Bind (int texnum)
|
|||
void GL_MBind( GLenum target, int texnum )
|
||||
{
|
||||
GL_SelectTexture( target );
|
||||
if ( target == GL_TEXTURE0 )
|
||||
if ( target == GL_Texture0 )
|
||||
{
|
||||
if ( gl_state.currenttextures[0] == texnum )
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue