Fixed GL_MATRIX_MODE incorrectly restored after calling popGLStates

This commit is contained in:
Laurent Gomila 2012-08-08 20:44:52 +02:00
parent 0670bad198
commit 2b3d9bdd91

View File

@ -241,14 +241,14 @@ void RenderTarget::popGLStates()
{ {
if (activate(true)) if (activate(true))
{ {
glCheck(glPopClientAttrib());
glCheck(glPopAttrib());
glCheck(glMatrixMode(GL_PROJECTION)); glCheck(glMatrixMode(GL_PROJECTION));
glCheck(glPopMatrix()); glCheck(glPopMatrix());
glCheck(glMatrixMode(GL_MODELVIEW)); glCheck(glMatrixMode(GL_MODELVIEW));
glCheck(glPopMatrix()); glCheck(glPopMatrix());
glCheck(glMatrixMode(GL_TEXTURE)); glCheck(glMatrixMode(GL_TEXTURE));
glCheck(glPopMatrix()); glCheck(glPopMatrix());
glCheck(glPopClientAttrib());
glCheck(glPopAttrib());
} }
} }