Advertisement

VAO required?

Started by September 09, 2017 10:31 PM
2 comments, last by penguinbyebye 7 years, 5 months ago

FINALLY, upgrading my engine to openGL 4. I was having some trouble so I started with a stripped down application and was wondering if VAO's are required, because I have a sample working, but if I remove the VAO then it doesn't seem to like drawing my triangle.

NBA2K, Madden, Maneater, Killing Floor, Sims

Yes. On all "core" profiles, since they've been introduced (OpenGL 3.2), you can't draw without a VAO.

"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

My journals: dustArtemis ECS framework and Making a Terrain Generator

Advertisement

Something that might save you a lot of trouble is just create a single VAO at the initialization and never touch it again. Since you were using older OpenGL version (or compatibility), you probably have a setup for managing attributes (which is the purpose of VAOs), and you can use your own instead of converting everything. Plus, managing by yourself makes easier to integrate to your renderer.

This topic is closed to new replies.

Advertisement