From 17c3910d846e9d7e8a341b179fd0943830bff8a6 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Fri, 13 Dec 2013 02:03:08 +0100 Subject: [PATCH] fixed love.graphics.push --- jni/love/src/modules/graphics/opengl/Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jni/love/src/modules/graphics/opengl/Graphics.cpp b/jni/love/src/modules/graphics/opengl/Graphics.cpp index 0100274f..99e91021 100644 --- a/jni/love/src/modules/graphics/opengl/Graphics.cpp +++ b/jni/love/src/modules/graphics/opengl/Graphics.cpp @@ -1053,7 +1053,7 @@ void Graphics::push() { if (gl.matrices.transform.size() == matrixLimit) throw Exception("Maximum stack depth reached. (More pushes than pops?)"); - gl.matrices.transform.push(Matrix()); + gl.matrices.transform.push(gl.matrices.transform.top()); pixel_size_stack.push_back(pixel_size_stack.back()); }