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?
↧