Let's build again after the support for GL_ARB_draw_buffers was added.
authorPhilippe Houdoin <phoudoin@freedesktop.org>
Wed, 13 Oct 2004 01:23:32 +0000 (01:23 +0000)
committerPhilippe Houdoin <phoudoin@freedesktop.org>
Wed, 13 Oct 2004 01:23:32 +0000 (01:23 +0000)
src/mesa/drivers/beos/GLView.cpp

index 7426b49..43aa13e 100644 (file)
@@ -831,7 +831,7 @@ void MesaDriver::UpdateState( GLcontext *ctx, GLuint new_state )
        _ac_InvalidateState( ctx, new_state );
        _tnl_InvalidateState( ctx, new_state );
 
-       if (ctx->Color.DrawBuffer == GL_FRONT) {
+       if (ctx->Color.DrawBuffer[0] == GL_FRONT) {
       /* read/write front buffer */
       swdd->WriteRGBASpan = MesaDriver::WriteRGBASpanFront;
       swdd->WriteRGBSpan = MesaDriver::WriteRGBSpanFront;