From 873c6ab9354335fc9fdd73c32d60f6c5411dc005 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 30 Oct 2023 22:12:17 -0700 Subject: [PATCH] panic when u32::MAX verts --- src/graphics.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/graphics.rs b/src/graphics.rs index 2c15a1c..bd1ee5b 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -454,7 +454,9 @@ impl GraphicsState{ } GraphicsModelSingleTexture{ instances:model.instances, - entities:if (u16::MAX as usize)