diff --git a/src/Mesh.hs b/src/Mesh.hs index d652399..1c6ce94 100644 --- a/src/Mesh.hs +++ b/src/Mesh.hs @@ -37,7 +37,7 @@ uploadMesh uploadMesh vertices allocator = do let bufferCreateInfo = Vk.zero { Vk.size = fromIntegral $ - V.length loadMeshes * sizeOf (Vertex (V3 0 0 0) (V3 0 0 0 ) (V4 0 0 0 0)) + V.length vertices * sizeOf (Vertex (V3 0 0 0) (V3 0 0 0 ) (V4 0 0 0 0)) , Vk.usage = Vk.BUFFER_USAGE_VERTEX_BUFFER_BIT } allocationCreateInfo = Vk.zero