From: Ian Romanick Date: Wed, 5 Sep 2012 15:48:32 +0000 (-0700) Subject: mesa: Don't set dispatch pointer for glGetBufferSubData in ES2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11927bfc4a43aefbac5af35aae34d5cdf5d9e6bb;p=mesa.git mesa: Don't set dispatch pointer for glGetBufferSubData in ES2 NOTE: This is a candidate for the 9.0 branch Signed-off-by: Ian Romanick Reviewed-by: Eric Anholt --- diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 0fc27e4ba87..d9afe37a041 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -2332,7 +2332,9 @@ _mesa_init_bufferobj_dispatch(struct gl_context *ctx, struct _glapi_table *disp) SET_GenBuffersARB(disp, _mesa_GenBuffersARB); SET_GetBufferParameterivARB(disp, _mesa_GetBufferParameterivARB); SET_GetBufferPointervARB(disp, _mesa_GetBufferPointervARB); - SET_GetBufferSubDataARB(disp, _mesa_GetBufferSubDataARB); + if (ctx->API != API_OPENGLES2) { + SET_GetBufferSubDataARB(disp, _mesa_GetBufferSubDataARB); + } SET_IsBufferARB(disp, _mesa_IsBufferARB); SET_MapBufferARB(disp, _mesa_MapBufferARB); SET_UnmapBufferARB(disp, _mesa_UnmapBufferARB);