summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/bufferobj.c
diff options
context:
space:
mode:
authorMarta Lofstedt <marta.lofstedt@intel.com>2015-05-11 15:03:49 +0200
committerTapani Pälli <tapani.palli@intel.com>2015-08-03 12:18:08 +0300
commit2e0179e2b3b9ea369816597f789a5bda7e0c46b5 (patch)
treeeaf2f5d288a9c855ab83d0b110740399e04414db /src/mesa/main/bufferobj.c
parentde59a40f6898e20a61ac4ea0e5995334f6ed2932 (diff)
downloadexternal_mesa3d-2e0179e2b3b9ea369816597f789a5bda7e0c46b5.zip
external_mesa3d-2e0179e2b3b9ea369816597f789a5bda7e0c46b5.tar.gz
external_mesa3d-2e0179e2b3b9ea369816597f789a5bda7e0c46b5.tar.bz2
mesa/es3.1: Allow binding GL_DRAW_INDIRECT_BUFFER with gles 3.1
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Diffstat (limited to 'src/mesa/main/bufferobj.c')
-rw-r--r--src/mesa/main/bufferobj.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 9425b09..6ddcc5c 100644
--- 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;