aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/draw_validate.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-07-24 00:11:47 -0400
committerMarek Olšák <[email protected]>2018-07-24 16:00:09 -0400
commit7d2e6edd897ba9d2d26abe9bc57e72c314753ce4 (patch)
treeed71bcdfde25b442fd8af5b38cdef4dd03cb2ea7 /src/mesa/main/draw_validate.c
parent49ed075615ec869715b0a520eea66d3620fc1c3b (diff)
mesa: allow indirect draws with the default VAO and compatibility profile
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/draw_validate.c')
-rw-r--r--src/mesa/main/draw_validate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/draw_validate.c b/src/mesa/main/draw_validate.c
index c0a234a2bc2..29304bd5144 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;
}