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:46:04 +0000 (11:46 -0700)
commitf29a4b0157c6a7a31d2a2991a431b4211d01d162
treeadc83960fdcc235575f3748c771d8635cbcc9930
parentedc0a00377c810889a589c6d7c5e13e75618648a
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>
src/mesa/main/extensions.c