Hi, I set up a VAO following a tutorial (before this I was just using VBOs, all data in the same array).
Assuming that I set it up correctly, I am wondering if there is any undefined behavior if, for whatever reason, I unbind the VAO, but still call glDraw*()?
/// render loop:
//commented out: glBindVertexArray(vao_ID); // Bind to current VAO
glBindVertexArray(0); // Unbind before calling Draw!
glDrawArrays(GL_TRIANGLES, 0, 3 * 2); // (trying to) draw 2 triangles
// Can this cause error since nothing is binded, or will it simply not draw it?
OpenGL doesn't generate any specific errors, but, in other words, will it simply ignore the draw command since nothing is bound, or could it potentially cause an error/crash or junk to draw. Using OpenGL 3.3+ (4.3 to be exact, though I don't think it should matter) with C++.