mesa: glsl: fix a number of glUniform issues
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 6 Aug 2008 22:26:47 +0000 (16:26 -0600)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 24 Sep 2008 00:33:49 +0000 (17:33 -0700)
commiteda291e316601d2ebf9834c290686854ea857aec
tree54b703904e1f5dc35aebc4b91944abf6dd21696c
parentbda6ad273d17efbe69a2a0599595cd4d50617cc3
mesa: glsl: fix a number of glUniform issues

Additional error checking.
Allow setting elements of uniform arrays.  This involves encoding both
a uniform location and a parameter offset in the value returned by
glGetUniformLocation().
Limit glUniform[if]v()'s count to the size of the uniform array.
When setting bool-valued uniforms, convert all float/int values to 0 or 1.
src/mesa/shader/shader_api.c