From 62aa51b78abfdb3737ab64eaa776e4ddaab9dfd5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 2 May 2011 17:13:59 +0200 Subject: [PATCH] mesa: flush vertices before changing GL_RASTERIZER_DISCARD state, not after Reviewed-by: Brian Paul Reviewed-by: Ian Romanick --- src/mesa/main/enable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2