Module: Mesa Branch: master Commit: 7d2e6edd897ba9d2d26abe9bc57e72c314753ce4 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d2e6edd897ba9d2d26abe9bc57e72c314753ce4
Author: Marek Olšák <[email protected]> Date: Tue Jul 24 00:11:47 2018 -0400 mesa: allow indirect draws with the default VAO and compatibility profile Reviewed-by: Eric Anholt <[email protected]> --- src/mesa/main/draw_validate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/draw_validate.c b/src/mesa/main/draw_validate.c index c0a234a2bc..29304bd514 100644 --- a/src/mesa/main/draw_validate.c +++ b/src/mesa/main/draw_validate.c @@ -1085,7 +1085,8 @@ valid_draw_indirect(struct gl_context *ctx, * structure, be in buffer objects, and may not be called when * the default vertex array object is bound." */ - if (ctx->Array.VAO == ctx->Array.DefaultVAO) { + if (ctx->API != API_OPENGL_COMPAT && + ctx->Array.VAO == ctx->Array.DefaultVAO) { _mesa_error(ctx, GL_INVALID_OPERATION, "(no VAO bound)"); return GL_FALSE; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
