mesa: Don't advertise GLES extensions in GL contexts
authorChad Versace <chad.versace@linux.intel.com>
Tue, 4 Sep 2012 17:02:43 +0000 (10:02 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Thu, 6 Sep 2012 18:49:11 +0000 (11:49 -0700)
commit13b8eb64523a70af30b576271886a737f51dbe40
tree279db8759c751eee8ef2897780c62e13f8cc3915
parentc7775e842bec815ede6badc35dbfe4991c183e3a
mesa: Don't advertise GLES extensions in GL contexts

glGetStringi(GL_EXTENSIONS) failed to respect the context's API, and so
returned all internally enabled GLES extensions from a GL context.
Likewise, glGetIntegerv(GL_NUM_EXTENSIONS) also failed to repsect the
context's API.

Note: This is a candidate for the 8.0 and 9.0 branches.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit f29a4b0157c6a7a31d2a2991a431b4211d01d162)
src/mesa/main/extensions.c