OpenGL - Does the Vertex Array Object store enabled attributes?

Does the VAO
(glGenVertexArrays/glBindVertexArray/glDeleteVertexArrays)
store the enabled/disabled state for the Vertex Attributes (glEnableVertexAttribArray/glDisableVertexAttribArray)
or should I re-enable them every time?
Last edited on
closed account (3hM2Nwbp)
I would expect the vertex attributes enabled states to be stored separately from the VAOs. The documentation ( http://www.opengl.org/sdk/docs/man/xhtml/glGenVertexArrays.xml ) doesn't mention any other parts of the state machine being modified.

Still though, if you're mixing your code with others' code in the project, it would be wise to re-enable the attributes on every frame, as other parts of the project might tweak your expected settings.

Hope it helps.
Topic archived. No new replies allowed.