summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-05-02 17:13:59 +0200
committerMarek Olšák <[email protected]>2011-05-03 00:35:50 +0200
commit62aa51b78abfdb3737ab64eaa776e4ddaab9dfd5 (patch)
treec5efc2bcc31eb949db0e388ef48857e358f76926 /src/mesa/main
parentaafbaa9e6a87cecb336f2704b799430d74c60456 (diff)
mesa: flush vertices before changing GL_RASTERIZER_DISCARD state, not after
Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/enable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 6bc045d7a7f..aac8b9c5eaf 100644
--- 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