From a7011922f1d48357f18af4639fad008f6f33a984 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 18 May 2016 23:47:01 -0700 Subject: [PATCH] vbo: Declare the index range invalid for DrawTransformFeedback MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Right now, we're setting the range to [0, 0] which is obviously bogus. Instead, we should set it to be invalid like we do for DrawIndirect. Cc: "11.1 11.2" Reviewed-by: Marek Olšák Reviewed-by: Iago Toral Quiroga Reviewed-by: Kenneth Graunke --- src/mesa/vbo/vbo_exec_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index 3b45eb5d09f..87ed7f7a53e 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -1323,7 +1323,7 @@ vbo_draw_transform_feedback(struct gl_context *ctx, GLenum mode, * will be rendered. */ vbo->draw_prims(ctx, prim, 1, NULL, - GL_TRUE, 0, 0, obj, stream, NULL); + GL_FALSE, ~0, ~0, obj, stream, NULL); if (MESA_DEBUG_FLAGS & DEBUG_ALWAYS_FLUSH) { _mesa_flush(ctx); -- 2.30.2