From 8c75d1ee430d3322094053da70e7f843700e5ead Mon Sep 17 00:00:00 2001 From: "Melik.H" Date: Wed, 17 May 2023 11:22:48 +0200 Subject: [PATCH] Update 'src/model/mesh.rs' --- src/model/mesh.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/model/mesh.rs b/src/model/mesh.rs index 3de5cd6..d06c90c 100644 --- a/src/model/mesh.rs +++ b/src/model/mesh.rs @@ -16,6 +16,7 @@ use crate::shader::shader; // NOTE: without repr(C) the compiler may reorder the fields or use different padding/alignment than C. // Depending on how you pass the data to OpenGL, this may be bad. In this case it's not strictly // necessary though because of the `offset!` macro used below in setupMesh() +#[repr(C)] #[derive(Clone)] pub struct Vertex { // position