render even when alpha is 0 when zbuffering is on (fixes
ScreenStage, lifebar)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user