From f47e132921c2e79d2b65b2ef171379ccbbbee903 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 26 Mar 2024 07:30:01 -0400 Subject: [PATCH] Increase MATIX_STACK_SIZE --- BeefLibs/Beefy2D/src/gfx/Graphics.bf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BeefLibs/Beefy2D/src/gfx/Graphics.bf b/BeefLibs/Beefy2D/src/gfx/Graphics.bf index b0b26b03..45293fb9 100644 --- a/BeefLibs/Beefy2D/src/gfx/Graphics.bf +++ b/BeefLibs/Beefy2D/src/gfx/Graphics.bf @@ -51,19 +51,19 @@ namespace Beefy.gfx public float ZDepth { get; set; } protected DisposeProxy mMatrixDisposeProxy ~ delete _; - const int32 MATIX_STACK_SIZE = 256; + const int32 MATIX_STACK_SIZE = 4096; public Matrix[] mMatrixStack = new Matrix[MATIX_STACK_SIZE] ~ delete _; public int32 mMatrixStackIdx = 0; public Matrix mMatrix; protected DisposeProxy mDrawLayerDisposeProxy ~ delete _; - const int32 DRAW_LAYER_SIZE = 256; + const int32 DRAW_LAYER_SIZE = 4096; public DrawLayer[] mDrawLayerStack = new DrawLayer[DRAW_LAYER_SIZE] ~ delete _; public int32 mDrawLayerStackIdx = 0; public DrawLayer mDrawLayer; protected DisposeProxy mColorDisposeProxy ~ delete _; - const int32 COLOR_STACK_SIZE = 256; + const int32 COLOR_STACK_SIZE = 4096; public Color[] mColorStack = new Color[COLOR_STACK_SIZE] ~ delete _; public int32 mColorStackIdx = 0; public Color mColor = Color.White;