cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
538 stars 59 forks source link

Fix legacy Vertex Attribute Binding divisor #261

Closed mrzzzrm closed 9 years ago

mrzzzrm commented 9 years ago

In an implementation without vertex bindings available glVertexAttribDivisor() has to be used instead of glVertexBindingDivisor(). I hope this is the right way to fix this, haven't looked much at the surrounding code....

scheibel commented 9 years ago

Regarding the output from glisdeprecated.com, glVertexBindingDivisor requires OpenGL 4.3 and glVertexAttribDivisor OpenGL 3.3, so for the legacy implementation this should be the better choice.