Please provide a
minimal complete example. Post it here, not on an external site. And describe the error more precisely.
If your question is more related to OpenGL than SFML, you will get better answers on a different forum or platform. In general, you should track OpenGL errors, see SFML's implementation of the
glCheck macro.