[Mesa-dev] [PATCH 1/2] mesa: Set the correct ctx->NewState bitfield for rasterizer discard.
Paul Berry
stereotype441 at gmail.com
Wed Dec 14 11:59:05 PST 2011
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
More information about the mesa-dev
mailing list