Im trying to use opengl and sfml to draw stuff on a same screen, it is and i followed the sfml tutorial. this is my code structure
glDraw...
window.pushGLStates();
window.draw(...);
window.popGLStates();
glDraw...
but the error i get is that OpenGL error (1282) detected in user code, you should check for errors with glGetError(). what could have gone wrong, please help