I’m having a bit of trouble using glMultiDrawArrays. I have my vertex and index info loaded and it draws fine using glDrawElements, but now I want to split it up into multiple pieces. I loaded my offsets and lengths into a couple IntBuffers but the jvm keeps crashing in native code. I saw an old post from 2007 about something similar so I made sure to use BufferUtil to make my buffers and to rewind them before using but still crashes on me. Any ideas?
multi draw arrays call
gl2.glMultiDrawArrays(GL2.GL_TRIANGLE_STRIP, positionsBuffer, lengthsBuffer, positionsList.size());
native crash file contents (attached, post was too long)