From 6d1f6bf5c935405e5d0b3006e1e0e5a62b9412d8 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 22 Nov 2025 15:42:07 +1100 Subject: [PATCH] fix texture index in asset loading --- assets.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets.d b/assets.d index aa8c3af..1489c0c 100644 --- a/assets.d +++ b/assets.d @@ -390,7 +390,7 @@ LoadGLTF(Arena* arena, string file_name) model.mats[0] = DEFAULT_MATERIAL; - u32 tex_idx; + u32 tex_idx = 1; string file_path = GetFilePath(file_name); for(u64 i = 0; i < data.materials_count; i += 1) {