From df743e9780e48c7dd473a10fecff0ae39623033b Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 7 Jul 2005 22:07:13 +0000 Subject: [PATCH] fix weird alpha behavior with no lighting --- stepmania/src/RageDisplay_OGL.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index b5bd184269..c2f86e8f4b 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -1539,7 +1539,11 @@ void RageDisplay_OGL::SetMaterial( } else { - glColor4fv( emissive + ambient + diffuse ); + RageColor c = diffuse; + c.r += emissive.r + ambient.r; + c.g += emissive.g + ambient.g; + c.b += emissive.b + ambient.b; + glColor4fv( c ); } }