Aeva / m.grl

Midnight Graphics & Recreation Library
http://mgrl.midnightsisters.org
GNU Lesser General Public License v3.0
44 stars 3 forks source link

support arbitrary array uniforms #147

Closed Aeva closed 9 years ago

Aeva commented 9 years ago

In the _binduniform method in m.gl.js, the data.size variable is never checked to determine whether or not the value being uploaded should be an array; rather it just assumes that data.size is 1.

Rather, it should check to see if data.size is greater than one and bind accordingly.