mesa: make glGet*(GL_NONE) generate GL_INVALID_ENUM
authorBrian Paul <brianp@vmware.com>
Fri, 3 Dec 2010 22:59:29 +0000 (15:59 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 3 Dec 2010 23:04:26 +0000 (16:04 -0700)
commit503983b09e86b2ea1bdc1268977e12eaea42293d
treeb5eab40d3d886ed6ad57f93234cf0afe576fbd4d
parent40ee69b4f33288604f8d90a1d11a63dfde082952
mesa: make glGet*(GL_NONE) generate GL_INVALID_ENUM

In find_value() check if we've hit the 0th/invalid entry before checking
if the pname matches.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31987

NOTE: This is a candidate for the 7.9 branch.
src/mesa/main/get.c