mesa: Treat glBindFramebuffer and glBindFramebufferEXT more correctly
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 19 Jul 2013 00:39:22 +0000 (17:39 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 6 Aug 2013 17:46:05 +0000 (10:46 -0700)
commit4a9522a5a0c11b6e162188337fd5938f9e2695fd
treeb0fdfa4bc7fe25c42138ffaececec5ff7d2ad163
parent97965e87fc0771a99c16b639caed01e5d0b64353
mesa: Treat glBindFramebuffer and glBindFramebufferEXT more correctly

Allow user-generated names for glBindFramebufferEXT on desktop GL.
Disallow its use altogether for core profiles.

Names bound with glBindFramebuffer in desktop OpenGL are still
(incorrectly) shared across the share group instead of being
per-context.  This gets us a bit closer to being strictly conformant.

v2: Disallow glBindFramebufferEXT in 3.1 by not installing it in the
dispatch table.  Suggested by Jordan.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> [v1]
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> [v1]
Cc: mesa-stable@lists.freedesktop.org
src/mapi/glapi/gen/EXT_framebuffer_object.xml
src/mesa/main/fbobject.c
src/mesa/main/tests/dispatch_sanity.cpp