projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aafbaa9
)
mesa: flush vertices before changing GL_RASTERIZER_DISCARD state, not after
author
Marek Olšák
<maraeo@gmail.com>
Mon, 2 May 2011 15:13:59 +0000
(17:13 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Mon, 2 May 2011 22:35:50 +0000
(
00:35
+0200)
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/enable.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/enable.c
b/src/mesa/main/enable.c
index 6bc045d7a7ffb70f96f5e08372962e51f272bd35..aac8b9c5eaf62ddda3fbfd23225fd74b27f5895e 100644
(file)
--- a/
src/mesa/main/enable.c
+++ b/
src/mesa/main/enable.c
@@
-895,8
+895,8
@@
_mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
case GL_RASTERIZER_DISCARD:
CHECK_EXTENSION(EXT_transform_feedback, cap);
if (ctx->TransformFeedback.RasterDiscard != state) {
- ctx->TransformFeedback.RasterDiscard = state;
FLUSH_VERTICES(ctx, _NEW_TRANSFORM);
+ ctx->TransformFeedback.RasterDiscard = state;
}
break;
#endif