OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d36f4ef
)
mesa: fix MSAA enable state in update_multisample()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 15 Sep 2008 23:10:04 +0000
(17:10 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 15 Sep 2008 23:14:53 +0000
(17:14 -0600)
src/mesa/main/state.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/state.c
b/src/mesa/main/state.c
index
7192bed
..
d60b9a1
100644
(file)
--- 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;
}