1
General / tryng to use sfml, opengl to draw on the same window
« on: November 02, 2016, 09:22:36 pm »
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
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