46
Graphics / Combining OpenGL and SFML graphics
« on: October 03, 2010, 02:15:36 pm »
I'll take a guess and say that this makes your problem :
It might not be the case because I don't really know what glPreserveOpenGLStates does "behind" but if it doesn't save that, then your line just erases all you've done before.
Code: [Select]
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
It might not be the case because I don't really know what glPreserveOpenGLStates does "behind" but if it doesn't save that, then your line just erases all you've done before.