From 368375ca010fc63a9bd3341a95ecb3a2f63a630a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 4 May 2003 05:10:51 +0000 Subject: [PATCH] handle some obscure rounding errors --- stepmania/src/BitmapText.cpp | 2 +- stepmania/src/Sprite.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/BitmapText.cpp b/stepmania/src/BitmapText.cpp index 58a3dea587..e320e34e00 100644 --- a/stepmania/src/BitmapText.cpp +++ b/stepmania/src/BitmapText.cpp @@ -336,7 +336,7 @@ void BitmapText::DrawPrimitives() } /* render the glow pass */ - if( m_temp.glow.a != 0 ) + if( m_temp.glow.a > 0.0001f ) { DISPLAY->SetTextureModeGlow(); diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index a5041362f0..8d43b82cd9 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -318,7 +318,7 @@ void Sprite::DrawPrimitives() ////////////////////// // render the glow pass ////////////////////// - if( m_temp.glow.a != 0 ) + if( m_temp.glow.a > 0.0001f ) { DISPLAY->SetTextureModeGlow(); v[0].c = v[1].c = v[2].c = v[3].c = m_temp.glow;