aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-09-15 17:10:04 -0600
committerBrian Paul <[email protected]>2008-09-15 17:14:53 -0600
commit9d48a7832b78658d2422ae5a185276c41750010d (patch)
treea426f981f6d3edb5c3fdf1aa1dfff7d84b571aea
parentd36f4ef16b338f42342cac5a7f2ec55e17fc0893 (diff)
mesa: fix MSAA enable state in update_multisample()
-rw-r--r--src/mesa/main/state.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 7192bed4a3d..d60b9a13d8b 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -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;
}