Login  Register

Re: glVertexAttribPointer and BindBuffer

Posted by gouessej on May 21, 2016; 10:09am
URL: https://forum.jogamp.org/glVertexAttribPointer-and-BindBuffer-tp4036732p4036733.html

Hi

glVertexAttribPointer with zero as a stride indicates that the generic vertex attributes are tightly packed in the array, it's acceptable:
https://www.opengl.org/sdk/docs/man/html/glVertexAttribPointer.xhtml

gl3.glBindBuffer(GL_ARRAY_BUFFER, 0) unbinds the VBO whereas gl3.glBindVertexArray(0) unbinds the VAO.

What do you mean by "error occurs but it didn't mentioned anything about the error"?
Julien Gouesse | Personal blog | Website