From 08b49cc15c171ccaf65e540afd0add907a58d1fd Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Mon, 14 Oct 2013 16:55:23 +0200 Subject: [PATCH] Fixed RenderTarget::resetGLStates() not explicitly setting the default polygon mode (glPolygonMode) (#480) --- src/SFML/Graphics/RenderTarget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SFML/Graphics/RenderTarget.cpp b/src/SFML/Graphics/RenderTarget.cpp index a2316cf0..9c94bebb 100644 --- a/src/SFML/Graphics/RenderTarget.cpp +++ b/src/SFML/Graphics/RenderTarget.cpp @@ -304,6 +304,7 @@ void RenderTarget::resetGLStates() glCheck(glEnableClientState(GL_VERTEX_ARRAY)); glCheck(glEnableClientState(GL_COLOR_ARRAY)); glCheck(glEnableClientState(GL_TEXTURE_COORD_ARRAY)); + glCheck(glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)); m_cache.glStatesSet = true; // Apply the default SFML states