mesa/es3.1: Allow binding GL_DRAW_INDIRECT_BUFFER with gles 3.1
authorMarta Lofstedt <marta.lofstedt@intel.com>
Mon, 11 May 2015 13:03:49 +0000 (15:03 +0200)
committerTapani 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

index 9425b095e8123a22fc20d26e4b22eb6f1321213a..6ddcc5cad4e9ea642c42698fced0bb682c0f1a77 100644 (file)
@@ -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;