From edc77742c512b85ad35544b2cfbe3f359dc75805 Mon Sep 17 00:00:00 2001 From: aap Date: Mon, 5 Oct 2020 20:55:35 +0200 Subject: [PATCH] fix scoping issue --- src/gl/gl3immed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/gl3immed.cpp b/src/gl/gl3immed.cpp index 5dbcea1..a1bed63 100644 --- a/src/gl/gl3immed.cpp +++ b/src/gl/gl3immed.cpp @@ -256,7 +256,7 @@ void im3DTransform(void *vertices, int32 numVertices, Matrix *world, uint32 flags) { if(world == nil){ - Matrix ident; + static Matrix ident; ident.setIdentity(); world = &ident; }