diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-10-02 13:29:59 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-10-02 13:29:59 +0300 |
commit | 2f2d2f43366f8d01a46a9d0c959fca6b970d6367 (patch) | |
tree | 0659c0a4490f2db2a2cd6ac7638448dcc3166515 /tools/diff_autodebugger.py | |
parent | 352f3f4f10f11ed00b8b0df714ef93b92a271758 (diff) |
Fix the handling of uniform arrays in the GL interop layer. In GL, arrays of uniforms need to have consecutive locations, i.e. array[x] is at location array[0] + x. The uniform mapping table mechanism in library_gl.js did not take into account that user could do int loc = getUniformLocation("array[0]") and then call glUniform3fv(loc+2, data). In the fix, uniforms are mapped so that arrays will be guaranteed to get consecutive locations.
Diffstat (limited to 'tools/diff_autodebugger.py')
0 files changed, 0 insertions, 0 deletions