projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49ed075
)
mesa: allow indirect draws with the default VAO and compatibility profile
author
Marek Olšák
<marek.olsak@amd.com>
Tue, 24 Jul 2018 04:11:47 +0000
(
00:11
-0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Tue, 24 Jul 2018 20:00:09 +0000
(16:00 -0400)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/draw_validate.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/draw_validate.c
b/src/mesa/main/draw_validate.c
index c0a234a2bc286c1cc07ce93ad26dc14c7424982c..29304bd5144a816b7031ae821f31bb6efb52e9fa 100644
(file)
--- 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;
}