Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: tryng to use sfml, opengl to draw on the same window  (Read 1096 times)

0 Members and 1 Guest are viewing this topic.

Baduo127

  • Newbie
  • *
  • Posts: 2
    • View Profile
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