projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de59a40
)
mesa/es3.1: Allow binding GL_DRAW_INDIRECT_BUFFER with gles 3.1
author
Marta Lofstedt
<marta.lofstedt@intel.com>
Mon, 11 May 2015 13:03:49 +0000
(15:03 +0200)
committer
Tapani Pälli
<tapani.palli@intel.com>
Mon, 3 Aug 2015 09:18:08 +0000
(12:18 +0300)
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/bufferobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/bufferobj.c
b/src/mesa/main/bufferobj.c
index 9425b095e8123a22fc20d26e4b22eb6f1321213a..6ddcc5cad4e9ea642c42698fced0bb682c0f1a77 100644
(file)
--- a/
src/mesa/main/bufferobj.c
+++ b/
src/mesa/main/bufferobj.c
@@
-91,8
+91,9
@@
get_buffer_target(struct gl_context *ctx, GLenum target)
case GL_COPY_WRITE_BUFFER:
return &ctx->CopyWriteBuffer;
case GL_DRAW_INDIRECT_BUFFER:
- if (ctx->API == API_OPENGL_CORE &&
- ctx->Extensions.ARB_draw_indirect) {
+ if ((ctx->API == API_OPENGL_CORE &&
+ ctx->Extensions.ARB_draw_indirect) ||
+ _mesa_is_gles31(ctx)) {
return &ctx->DrawIndirectBuffer;
}
break;