FS#146 - Fix current OpenGL matrix mode not properly saved when PreserveOpenGLStates is activated
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1338 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
b9a2d3a8f4
commit
44c943e651
@ -86,10 +86,10 @@ void RenderTarget::Draw(const Drawable& Object)
|
||||
// Save the current render states and set the SFML ones
|
||||
if (myPreserveStates)
|
||||
{
|
||||
GLCheck(glMatrixMode(GL_MODELVIEW)); GLCheck(glPushMatrix());
|
||||
GLCheck(glMatrixMode(GL_PROJECTION)); GLCheck(glPushMatrix());
|
||||
GLCheck(glPushAttrib(GL_COLOR_BUFFER_BIT | GL_CURRENT_BIT | GL_ENABLE_BIT |
|
||||
GL_TEXTURE_BIT | GL_TRANSFORM_BIT | GL_VIEWPORT_BIT));
|
||||
GLCheck(glMatrixMode(GL_MODELVIEW)); GLCheck(glPushMatrix());
|
||||
GLCheck(glMatrixMode(GL_PROJECTION)); GLCheck(glPushMatrix());
|
||||
SetRenderStates();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user