mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fixed GL_MATRIX_MODE incorrectly restored after calling popGLStates
This commit is contained in:
parent
0670bad198
commit
2b3d9bdd91
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user