From: Mikko Rasa Date: Tue, 21 Oct 2014 06:44:55 +0000 (+0300) Subject: Clear matrices_loaded flag after resetting matrices X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f1d6343bc6e08878500672db952e9e7f9c7b8ada;p=libs%2Fgl.git Clear matrices_loaded flag after resetting matrices Fixes an issue where using legacy mode with a Pipeline would case the matrices to be popped twice. --- diff --git a/source/renderer.cpp b/source/renderer.cpp index 06841fa7..bac7b6b8 100644 --- a/source/renderer.cpp +++ b/source/renderer.cpp @@ -157,6 +157,7 @@ void Renderer::end() if(camera) MatrixStack::projection().pop(); MatrixStack::modelview().pop(); + matrices_loaded = false; } Mesh::unbind();