Fixed "&" expressions for alpha and depth

This commit is contained in:
jens-olaf 2006-11-28 21:06:01 +00:00
parent 20085017da
commit 782e8067d1
1 changed files with 2 additions and 2 deletions

View File

@ -626,7 +626,7 @@ void GlideFramebuffer::OnChromaKeyValueChanged()
void GlideFramebuffer::SetAlpha(FxU32 alpha)
{
if (m_must_write && m_framebuffer->PixelPipeline & m_alpha != alpha)
if (m_must_write && (m_framebuffer->PixelPipeline & m_alpha) != alpha)
{
WriteFrameBuffer(m_framebuffer->PixelPipeline);
}
@ -635,7 +635,7 @@ void GlideFramebuffer::SetAlpha(FxU32 alpha)
void GlideFramebuffer::SetDepth(GLfloat depth)
{
if (m_must_write && m_framebuffer->PixelPipeline && m_depth != depth)
if (m_must_write && (m_framebuffer->PixelPipeline && m_depth) != depth)
{
WriteFrameBuffer(m_framebuffer->PixelPipeline);
}