Fixed RenderTarget::resetGLStates() not explicitly setting the default polygon mode (glPolygonMode) (#480)

This commit is contained in:
Laurent Gomila 2013-10-14 16:55:23 +02:00
parent 2ff58edd9a
commit 08b49cc15c

View File

@ -304,6 +304,7 @@ void RenderTarget::resetGLStates()
glCheck(glEnableClientState(GL_VERTEX_ARRAY)); glCheck(glEnableClientState(GL_VERTEX_ARRAY));
glCheck(glEnableClientState(GL_COLOR_ARRAY)); glCheck(glEnableClientState(GL_COLOR_ARRAY));
glCheck(glEnableClientState(GL_TEXTURE_COORD_ARRAY)); glCheck(glEnableClientState(GL_TEXTURE_COORD_ARRAY));
glCheck(glPolygonMode(GL_FRONT_AND_BACK, GL_FILL));
m_cache.glStatesSet = true; m_cache.glStatesSet = true;
// Apply the default SFML states // Apply the default SFML states