glsl: raise GL_INVALID_OPERATION for glUniform(location < -1)
authorBrian Paul <brianp@vmware.com>
Wed, 11 Feb 2009 16:05:08 +0000 (09:05 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 11 Feb 2009 16:17:21 +0000 (09:17 -0700)
commit234f03e90ab718f5b16300a91bac477ccbabf36c
tree811942e6658aec9ebdb2c01dc9fec37d1cf0d187
parent4ef7a93296dd7d7480dfa00a2b085009ca8c4814
glsl: raise GL_INVALID_OPERATION for glUniform(location < -1)

location = -1 is silently ignored, but other negative values should raise
an error.

Another fix for bug 20056.
src/mesa/shader/shader_api.c