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)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 6 Aug 2008 22:26:47 +0000 (16:26 -0600)
commit8a40fe06d72aa8b0c3a03b92b60a0f5b4ea61987
tree34164013cbde9237936f029777aee0e5b48fb808
parent7e2458c7b55b2662067d8cce8a962d8c2bbd3a43
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