Re: glVertexAttribPointer causes GL_INVALID_OPERATION
Posted by
Hotzenplotz on
Nov 18, 2011; 7:01pm
URL: https://forum.jogamp.org/glVertexAttribPointer-causes-GL-INVALID-OPERATION-tp3518547p3519408.html
Ok, now i solved it. It seems like one has to explicitly create and bind an Vertex Array Object in order to be able to render anything. So i just added this to my initialization:
_vao = gl.generateVertexArrayObject // custom method wrapping error handling etc
gl.glBindVertexArray(_vao)