I have a weird problem, after calling app.display when I call glBindVertexArray I get an Invalid operation error.
cout <<int(glIsVertexArray(2));
this->display();
cout <<int(glIsVertexArray(2));
If I set up a VAO with id 2 if I call this code I get that before calling display it is valid and after it isn't.
Could anyone tell me why is this happening.
Thank you very much