Mesa (master): mesa: flush vertices before changing GL_RASTERIZER_DISCARD state, not after

Marek Olšák mareko at kemper.freedesktop.org
Mon May 2 22:39:35 UTC 2011


Module: Mesa
Branch: master
Commit: 62aa51b78abfdb3737ab64eaa776e4ddaab9dfd5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=62aa51b78abfdb3737ab64eaa776e4ddaab9dfd5

Author: Marek Olšák <maraeo at gmail.com>
Date:   Mon May  2 17:13:59 2011 +0200

mesa: flush vertices before changing GL_RASTERIZER_DISCARD state, not after

Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/main/enable.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 6bc045d..aac8b9c 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




More information about the mesa-commit mailing list