Imgui part stops working as soon as i uncomment line
glBindVertexArray(VAO);
And i get errors "Error description:
GL_INVALID_OPERATION
The specified operation is not allowed in the current state."
If i call glBindVertexArray(0);, to unbind vertex array, it works.
Also tried glPushAttrib(GL_ALL_ATTRIB_BITS); + glPopAttrib() , but it doesn't work as well
I am trying to use sfml with imgui (and drawing using opengl) and having problems with states. Here's very minimal example:
Imgui part stops working as soon as i uncomment line
glBindVertexArray(VAO);
And i get errors "Error description: GL_INVALID_OPERATION The specified operation is not allowed in the current state."If i call
glBindVertexArray(0);
, to unbind vertex array, it works. Also triedglPushAttrib(GL_ALL_ATTRIB_BITS);
+glPopAttrib()
, but it doesn't work as wellAm i doing something wrong? How can i fix it?