diff --git a/src/SFML/Graphics/RenderTarget.cpp b/src/SFML/Graphics/RenderTarget.cpp index 603d8b3d..23da7271 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()); } }