fix flushing on systems without the texture combining extension
This commit is contained in:
@@ -670,13 +670,13 @@ void RageDisplay::SetBlendMode(int src, int dst)
|
||||
|
||||
void RageDisplay::SetTextureModeGlow()
|
||||
{
|
||||
FlushQueue();
|
||||
|
||||
if(!g_oglspecs.EXT_texture_env_combine) {
|
||||
SetBlendMode( GL_SRC_ALPHA, GL_ONE );
|
||||
return;
|
||||
}
|
||||
|
||||
FlushQueue();
|
||||
|
||||
/* Source color is the diffuse color only: */
|
||||
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE_EXT);
|
||||
glTexEnvi(GL_TEXTURE_ENV, GL_COMBINE_RGB_EXT, GL_REPLACE);
|
||||
|
||||
Reference in New Issue
Block a user