Does a VAO remember both a EBO/IBO (elements or indices) and a VBO?
问题 My code is working as it should but it might be a coincidence and I don't want to dwell on a bug later so I'm trying to keep it as clean as possible: I do the following for initializing a mesh: Gen and bind VBO and buffer data Gen and bind IBO and buffer data Gen and bind VAO Bind same VBO as before, generated in 1. Enable Vertex Attribute Arrays that I need and set the Vertex Attribute Pointers Bind the IBO again (don't exactly know why) BindVertexArray back to 0 so that I don't mess up the