I’m having a very similar issue but my crash is at glDrawElements. I believe there is a GL leak somewhere in my app but cannot spot it.
It crashes when I use ofVboMesh::setAttributeData. It eventually (after several loops) crashes in random glDraw functions. Is there any example out there on how to properly use and set custom attributes on ofVboMesh?
Is ofVboMesh designed so that we can access the underlying ofVbo and freely set attributes?
yes that should be fine. if you have called at least once setAttributeData and just need to change the data without changing the size, it’s usually better to call updateAttributeData instead. also if you call updateAttributeData on a buffer with smaller size it can crash
Just tested with latest github snapshot and it does crash. Maybe I’m doing something crazy on the uploaded app, but I think it should be fine, actually if I comment the setAttribute line it does not crash.
Can anyone confirm whether it crashes on other machines or platforms?