diff options
author | Brian Paul <[email protected]> | 2008-09-15 17:10:04 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-09-15 17:10:04 -0600 |
commit | b1f5fbe1cb937bc639cc335acfcfb8c09dfeb3ec (patch) | |
tree | 0c6d083c43fc571d2f480eb2374925832b634284 /src/mesa/main | |
parent | 987c4b35b8f552a88e1b6459adaabbf544d6bbf6 (diff) |
mesa: fix MSAA enable state in update_multisample()
Diffstat (limited to 'src/mesa/main')
-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 344af91e172..d355f78a0ef 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -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; } |