Reputation: 96091
When I trying to use glInterleavedArrays() I always get "GL_INVALID_FRAMEBUFFER_OPERATION" error.
GLuint bufid;
glGenBuffers(1, &bufid);
glBindBuffer(GL_ARRAY_BUFFER, bufid);
glInterleavedArrays(GL_C4F_N3F_V3F, 0, 0);
glBindBuffer(GL_ARRAY_BUFFER, 0);
What's wrong with this code?
Update
glCheckFramebufferStatus(GL_DRAW_FRAMEBUFFER)
and glCheckFramebufferStatus(GL_READ_FRAMEBUFFER )
both returns GL_FRAMEBUFFER_COMPLETE
.
Upvotes: 0
Views: 1138
Reputation: 5068
Are you sure this is because of the interleaved array? There are tons of reasons for invalid framebuffer operations. But this seems to be an unlikely cause.
Even if the framebuffer is complete it can still generate invalid operations, like enabling stencil without a stencil buffer.
You can replicate interleaved arrays with regular ones quite easily. Does the error persist?
Upvotes: 1