1
votes

Can someone explain to me this error, please:
GL_INVALID_OPERATION is generated if a non-zero buffer object name is bound to an enabled array and the buffer object's data store is currently mapped.

1

1 Answers

1
votes

I believe that it fires when you have a VBO actively bound via a pointer function (e.g. glVertexAttribPointer) at the same time the VBO is mapped to client memory with glMapBuffer.

You can't use a VBO while it's mapped to client memory, according to the glMapBuffer doc:

A mapped data store must be unmapped with glUnmapBuffer before its buffer object is used. Otherwise an error will be generated by any GL command that attempts to dereference the buffer object's data store.