From 4dae64c0fb0009ec74d94eb78f78ad58bbfdbcda Mon Sep 17 00:00:00 2001 From: Jens Hemprich <31758696+jenshemprich@users.noreply.github.com> Date: Tue, 28 Nov 2006 21:06:01 +0000 Subject: [PATCH] Fixed "&" expressions for alpha and depth --- MacGLide/OpenGLide/GlideFramebuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MacGLide/OpenGLide/GlideFramebuffer.cpp b/MacGLide/OpenGLide/GlideFramebuffer.cpp index 5b6ce95..a436c84 100644 --- a/MacGLide/OpenGLide/GlideFramebuffer.cpp +++ b/MacGLide/OpenGLide/GlideFramebuffer.cpp @@ -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); }