Login  Register

GLArrayDataServer GL_UNSIGNED_INT index buffer

Posted by Petr Skramovsky on May 15, 2013; 9:34am
URL: https://forum.jogamp.org/GLArrayDataServer-GL-UNSIGNED-INT-index-buffer-tp4029175.html

Hello, I use GLArrayDataServer.createData as my index buffer, with GL_UNSIGNED_SHORT it works as expected. But with GL_UNSIGNED_INT an exception is thrown from GLArrayDataWrapper.getBufferClass and indeed there's no implementation for it. Is this intended for some reason (something like GLES2 doesn't support int as index buffer but i use GL2 profile)? Or is there some way around? I would love to use GLArrayDataServer instead of normal GL calls.
Regards Petr.