Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

How many VAO can OpenGL bind at the same time?

$
0
0
How many VAOs are allowed to be bound to OpenGL at one time. I'm asking this because I recently saw code that looked like the following while(running){ bindVAO1 // Cube with lighting draw bindVAO2 // Cube draw } When I ran the program, both rendered without problems. My previous understanding was that OpenGL was restricted to one VAO at a time (Being a state machine). I originally expected to be some flickering between the two VAOs, as glDrawArray wouldn't have the other VAO binding to it for drawing. So how many VAO does OpenGL allow? Does glDrawArray keep track of previous renderings of objects?

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>