OSDN Git Service

mesa: Fix error checking for getters consisting of only API versions.
authorEric Anholt <eric@anholt.net>
Wed, 10 Apr 2013 16:49:37 +0000 (09:49 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 29 Apr 2013 18:41:33 +0000 (11:41 -0700)
commit2534f0a57d27cf99b6eed5ab94cdbd96e36a6fb9
tree8e0713f12ce31239725121ac91733916df489f70
parentd63a10afcc98d51ee1a297ab40ef3c1b9d8b1c1f
mesa: Fix error checking for getters consisting of only API versions.

In almost all of our cases, getters that are turned on for only some API
variants will have an extension listed as one of the things that can
enable it, and thus api_check gets set.  For extra_gl30_es3 (used for
NUM_EXTENSIONS, MAJOR_VERSION, MINOR_VERSION) on a GL 2.1 context, though,
we would check twice, not find either one, but never actually throw the
error.
src/mesa/main/get.c