render even when alpha is 0 when zbuffering is on (fixes

ScreenStage, lifebar)
This commit is contained in:
Glenn Maynard
2002-11-12 01:29:19 +00:00
parent ee223ec178
commit ec764db169
2 changed files with 6 additions and 5 deletions
+3 -1
View File
@@ -297,7 +297,9 @@ void BitmapText::DrawPrimitives()
DISPLAY->SetBlendModeNormal(); DISPLAY->SetBlendModeNormal();
if( m_temp.diffuse[0].a != 0 ) /* Draw if we're not fully transparent or the zbuffer is enabled (which ignores
* alpha). */
if( m_temp.diffuse[0].a != 0 || DISPLAY->ZBufferEnabled())
{ {
////////////////////// //////////////////////
// render the shadow // render the shadow
+3 -4
View File
@@ -267,10 +267,9 @@ void Sprite::DrawPrimitives()
else else
DISPLAY->SetBlendModeNormal(); DISPLAY->SetBlendModeNormal();
/* Draw if we're not fully transparent or the zbuffer is enabled (which ignores
* alpha). */
if( m_temp.diffuse[0].a != 0 || DISPLAY->ZBufferEnabled())
if( m_temp.diffuse[0].a != 0 )
{ {
////////////////////// //////////////////////
// render the shadow // render the shadow