mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
mesa: allow indirect draws with the default VAO and compatibility profile
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
49ed075615
commit
7d2e6edd89
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue