Login  Register

Re: need help understanding glVertexAttribPointer and GL_INVALID_OPERATION

Posted by jmaasing on Jan 09, 2013; 6:08am
URL: https://forum.jogamp.org/need-help-understanding-glVertexAttribPointer-and-GL-INVALID-OPERATION-tp4027730p4027751.html

That was one of the first things I tried actually and it didn't help :/
I did that to see if I read the GLSPecs correctly about finding the location. If I bind a number before linking I can see that by getting the attribute location after linking the number is the same as I assign. If I let the driver assign numbers I usually get 0 for the location.

Am I supposed to be able to bind a FloatBuffer directly as the API suggest or do I have to go through generating VAs and VBOs?
Not counting optimization, just, is it possible? I'm worried that I totally misunderstand the purpose of that method.

I haven't read the ES2-spec yet but maybe someone in the forum knows if there are some changes in glVertexAttribPointer since the RawGL2ES2 demo works fine but this code does not.