From da226d2f571dbb5647f8d3f897227c1ebd7205b3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 21 Nov 2002 09:19:36 +0000 Subject: [PATCH] fix flushing on systems without the texture combining extension --- stepmania/src/RageDisplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index 8be1873961..dec5a7cfdc 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -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);