SFML community forums

Help => General => Topic started by: Baduo127 on November 02, 2016, 09:22:36 pm

Title: tryng to use sfml, opengl to draw on the same window
Post by: Baduo127 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