]> git.tdb.fi Git - libs/gl.git/commitdiff
Clear matrices_loaded flag after resetting matrices
authorMikko Rasa <tdb@tdb.fi>
Tue, 21 Oct 2014 06:44:55 +0000 (09:44 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 21 Oct 2014 06:44:55 +0000 (09:44 +0300)
Fixes an issue where using legacy mode with a Pipeline would case the
matrices to be popped twice.

source/renderer.cpp

index 06841fa7a9a42442b6265b36f2c04d928fed8845..bac7b6b854bcc2ea1c51d684b2ff700589e2d9a8 100644 (file)
@@ -157,6 +157,7 @@ void Renderer::end()
                if(camera)
                        MatrixStack::projection().pop();
                MatrixStack::modelview().pop();
+               matrices_loaded = false;
        }
 
        Mesh::unbind();