From 2b3d9bdd91d138a7d70bc44d6505175f5fcc5654 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Wed, 8 Aug 2012 20:44:52 +0200 Subject: [PATCH] Fixed GL_MATRIX_MODE incorrectly restored after calling popGLStates --- src/SFML/Graphics/RenderTarget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/Graphics/RenderTarget.cpp b/src/SFML/Graphics/RenderTarget.cpp index 603d8b3dc..23da72715 100644 --- a/src/SFML/Graphics/RenderTarget.cpp +++ b/src/SFML/Graphics/RenderTarget.cpp @@ -241,14 +241,14 @@ void RenderTarget::popGLStates() { if (activate(true)) { - glCheck(glPopClientAttrib()); - glCheck(glPopAttrib()); glCheck(glMatrixMode(GL_PROJECTION)); glCheck(glPopMatrix()); glCheck(glMatrixMode(GL_MODELVIEW)); glCheck(glPopMatrix()); glCheck(glMatrixMode(GL_TEXTURE)); glCheck(glPopMatrix()); + glCheck(glPopClientAttrib()); + glCheck(glPopAttrib()); } }