diff --git a/assets.d b/assets.d index 6512de2..35450ff 100644 --- a/assets.d +++ b/assets.d @@ -100,8 +100,8 @@ struct Mesh { Vertex[] vtx; u32[] idx; - u64 start; - u64 length; + u32 offset; + u32 length; u32 mat_id; } @@ -375,7 +375,7 @@ LoadGLTF(Arena* arena, string file_name) model.vtx_buf = Alloc!(Vertex)(vtx_count); model.meshes = Alloc!(Mesh)(primitive_count); model.mats = Alloc!(Material)(data.materials_count+1); - model.tex = Alloc!(ImageData)(data.textures_count+1); + model.tex = Alloc!(ImageData)(data.textures_count+1); model.mats[0] = DEFAULT_MATERIAL;