mesa: fix MSAA enable state in update_multisample()

This commit is contained in:
Brian Paul
2008-09-15 17:10:04 -06:00
parent 987c4b35b8
commit b1f5fbe1cb

View File

@@ -295,11 +295,11 @@ static void
update_multisample(GLcontext *ctx)
{
ctx->Multisample._Enabled = GL_FALSE;
if (ctx->DrawBuffer) {
if (ctx->DrawBuffer->Visual.sampleBuffers)
if (ctx->Multisample.Enabled &&
ctx->DrawBuffer &&
ctx->DrawBuffer->Visual.sampleBuffers)
ctx->Multisample._Enabled = GL_TRUE;
}
}
/**