From d4688d03a5d76fbc75f79b031be86468876f4151 Mon Sep 17 00:00:00 2001 From: nek0 Date: Thu, 8 Dec 2022 07:43:03 +0100 Subject: [PATCH] generalize buffer size --- src/Mesh.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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