How to use VBOs without VAOs with OpenGL core profile?
问题 I'm having trouble using vertex buffer objects without using a vertex array object. My understanding was that VAOs are just encapsulating the state around VBOs. But shouldn't the VBOs be usable without a VAO? Here's a mini-example. With use_vao=true this works correctly (renders orange rect). With use_vao=false this renders nothing and generates a GL_INVALID_OPERATION error upon glDrawElements . // make sure the modern opengl headers are included before any others #include <OpenGL/gl3.h>