[Mesa-dev] [PATCH 02/11] mesa: implement GL_ARB_draw_indirect and GL_ARB_multi_draw_indirect
Ian Romanick
idr at freedesktop.org
Mon Nov 4 10:58:58 PST 2013
On 11/04/2013 10:56 AM, Ian Romanick wrote:
> On 11/04/2013 01:09 AM, Chris Forbes wrote:
>> diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
>> index 1f55061..69ea1c0 100644
>> --- a/src/mesa/main/bufferobj.c
>> +++ b/src/mesa/main/bufferobj.c
>> @@ -86,6 +86,10 @@ get_buffer_target(struct gl_context *ctx, GLenum target)
>> return &ctx->CopyReadBuffer;
>> case GL_COPY_WRITE_BUFFER:
>> return &ctx->CopyWriteBuffer;
>> + case GL_DRAW_INDIRECT_BUFFER:
>> + if (ctx->Extensions.ARB_draw_indirect)
>
> && _mesa_is_desktop_gl(ctx)
Actually, this should be ctx->API == API_OPENGL_CORE.
More information about the mesa-dev
mailing list