OpenGL culling is now explicitly disabled in SFML's internal states

This commit is contained in:
Laurent Gomila 2012-06-14 18:05:47 +02:00
parent c4c2c77686
commit 3d02d4c795

View File

@ -262,6 +262,7 @@ void RenderTarget::resetGLStates()
priv::ensureGlewInit(); priv::ensureGlewInit();
// Define the default OpenGL states // Define the default OpenGL states
glCheck(glDisable(GL_CULL_FACE));
glCheck(glDisable(GL_LIGHTING)); glCheck(glDisable(GL_LIGHTING));
glCheck(glDisable(GL_DEPTH_TEST)); glCheck(glDisable(GL_DEPTH_TEST));
glCheck(glDisable(GL_ALPHA_TEST)); glCheck(glDisable(GL_ALPHA_TEST));