From f1d6343bc6e08878500672db952e9e7f9c7b8ada Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 21 Oct 2014 09:44:55 +0300 Subject: [PATCH] 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. --- source/renderer.cpp | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.45.2