mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +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))
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user