diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-09-15 17:10:04 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-09-15 17:14:41 -0600 |
commit | 4fefa29d8cf843106dbb88198405c80ef9f72773 (patch) | |
tree | 975a3f77c1a2893c1a5fa89e11bebaa891787754 | |
parent | ef479d9f2aec58d83e0cfbd4deaa2018d844c720 (diff) |
mesa: fix MSAA enable state in update_multisample()
-rw-r--r-- | src/mesa/main/state.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 7192bed4a3..d60b9a13d8 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; } |