diff --git a/src/main.rs b/src/main.rs index a389730..b1bcb2e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1679,8 +1679,8 @@ impl VulkanApp { ); } - { - let data_ptr_vertices: &mut [Vertex; 3] = unsafe { std::mem::transmute(data_ptr) }; + unsafe { + let data_ptr_vertices: *mut [Vertex; 3] = std::mem::transmute(data_ptr); *data_ptr_vertices = VERTICES; }