openframeworks/openFrameworks — pull request #2829 by cinghiale (2014-03-04 23:39:15+00:00)
Title: ofVbo: don't use stride to calculate the buffer length

ofVbo: don't use stride to calculate the buffer length
------------------------------------------------------

In current implementation of setAttributeData/updateAttributeData the stride argument is used for two orthogonal concepts:

1. to calculate the size of the buffer
2. as an argument of glVertexAttribPointer

this make impossible to use a tightly packed array as an argument to a shader.