mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-22 02:18:10 +02:00
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>
This commit is contained in:
parent
de59a40f68
commit
2e0179e2b3
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue