fix flushing on systems without the texture combining extension

This commit is contained in:
Glenn Maynard
2002-11-21 09:19:36 +00:00
parent 0812be2332
commit da226d2f57
+2 -2
View File
@@ -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);