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:14:53 +0000 (17:14 -0600)
src/mesa/main/state.c

index 7192bed4a3d3401f4c725e2ffd8b781e71e4c17d..d60b9a13d8b92a0183ccf8f9ec4596653eda8914 100644 (file)
@@ -1067,10 +1067,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;
 }