projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb60040
)
swrast: Disable glAccum drawing during conditional rendering.
author
Eric Anholt
<eric@anholt.net>
Thu, 21 Apr 2011 23:52:21 +0000
(16:52 -0700)
committer
Eric Anholt
<eric@anholt.net>
Sat, 23 Apr 2011 20:21:56 +0000
(13:21 -0700)
src/mesa/swrast/s_accum.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_accum.c
b/src/mesa/swrast/s_accum.c
index 88d107a17dad3e8bb1ff70a41a9e4b62721b9810..0ec907d797922deb0e9ec0f29e1377579010a90e 100644
(file)
--- a/
src/mesa/swrast/s_accum.c
+++ b/
src/mesa/swrast/s_accum.c
@@
-24,6
+24,7
@@
#include "main/glheader.h"
+#include "main/condrender.h"
#include "main/context.h"
#include "main/macros.h"
#include "main/imports.h"
@@
-553,6
+554,9
@@
_swrast_Accum(struct gl_context *ctx, GLenum op, GLfloat value)
return;
}
+ if (!_mesa_check_conditional_render(ctx))
+ return;
+
swrast_render_start(ctx);
/* Compute region after calling swrast_render_start() so that we know the