Previously, we were setting the _NEW_TRANSFORM bit when enabling or
disabling RASTERIZER_DISCARD.  This is incorrect, since _NEW_TRANSFORM
flags changes to ctx->Transform, but the rasterizer discard flag is in
ctx->TransformFeedback.  This patch sets the correct bit,
_NEW_TRANSFORM_FEEDBACK.
---
 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 6461ac1..15a2305 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -890,7 +890,7 @@ _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) {
-            FLUSH_VERTICES(ctx, _NEW_TRANSFORM);
+            FLUSH_VERTICES(ctx, _NEW_TRANSFORM_FEEDBACK);
             ctx->TransformFeedback.RasterDiscard = state;
          }
          break;
-- 
1.7.6.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to