Skip to content

Commit

Permalink
Fixed GL_MATRIX_MODE incorrectly restored after calling popGLStates
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGomila committed Aug 8, 2012
1 parent 0670bad commit 2b3d9bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SFML/Graphics/RenderTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit 2b3d9bd

Please sign in to comment.