mesa: fix MSAA enable state in update_multisample()
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 15 Sep 2008 23:10:04 +0000 (17:10 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 15 Sep 2008 23:10:04 +0000 (17:10 -0600)
src/mesa/main/state.c

index 344af91e172fcf50b0158072ce58349c46ecd4fa..d355f78a0efbf98b2ac1184c6f91d4edf0042589 100644 (file)
@@ -295,10 +295,10 @@ static void
 update_multisample(GLcontext *ctx)
 {
    ctx->Multisample._Enabled = GL_FALSE;
-   if (ctx->DrawBuffer) {
-      if (ctx->DrawBuffer->Visual.sampleBuffers)
-         ctx->Multisample._Enabled = GL_TRUE;
-   }
+   if (ctx->Multisample.Enabled &&
+       ctx->DrawBuffer &&
+       ctx->DrawBuffer->Visual.sampleBuffers)
+      ctx->Multisample._Enabled = GL_TRUE;
 }