mesa/es: Pass context to _mesa_init_bufferobj_dispatch
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Aug 2012 17:23:22 +0000 (10:23 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 14 Aug 2012 21:39:33 +0000 (14:39 -0700)
commite2370bcc1ddde84d5d1ff676c29638645cb21731
tree61e447e453232bdaf9d3c77951b11d86a7a49f93
parent342be8aa88819446220bba680d8e0b628078156f
mesa/es: Pass context to _mesa_init_bufferobj_dispatch

With this change _mesa_init_bufferobj_dispatch won't set function
pointers that don't exist in OpenGL ES.

v2: Use _mesa_is_desktop_gl and _mesa_is_gles3 as suggested by Ken.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/api_exec.c
src/mesa/main/bufferobj.c
src/mesa/main/bufferobj.h