From 86e9a91e2af9541bebea9afa5697450443a3d10c Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 2 Jan 2025 18:05:11 -0800 Subject: Minor tweak. --- Spear/Render/Immediate.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spear/Render/Immediate.hs b/Spear/Render/Immediate.hs index b9b72d2..94a7abf 100644 --- a/Spear/Render/Immediate.hs +++ b/Spear/Render/Immediate.hs @@ -87,7 +87,7 @@ immEnd = do deactivateShaderProgram (shader state) immDrawTriangles :: [Vector3] -> Game ImmRenderState () -immDrawTriangles vertices = do +immDrawTriangles vertices = unless (null vertices) $ do loadMatrixStack state <- get -- cgit v1.2.3