go-gl/gl — pull request #86 by jimarnold (2012-12-17 14:21:22+00:00)
Title: Fix glUniform*v calls

glUniform*v functions take a `count` parameter, which is the number of elements of the *uniform* type (eg `vec4`), not the number of elements (eg `float32`) in the array. This patch fixes the bug by adding a `count` param on the go side, with a panic() if the array does not have at least 1 element (while OpenGL allows a count of 0, we need to take the address of the first element).