diff --git a/src/vk.cpp b/src/vk.cpp index 4025ab9..e3ae92a 100644 --- a/src/vk.cpp +++ b/src/vk.cpp @@ -593,7 +593,7 @@ void Vulkan::createGraphicPipeline() attributeDescriptions[1].offset = offsetof(Vertex, color); vertexInputInfo.vertexBindingDescriptionCount = 1; - vertexInputInfo.vertexAttributeDescriptionCount = sizeof(attributeDescriptions); + vertexInputInfo.vertexAttributeDescriptionCount = 2; vertexInputInfo.pVertexBindingDescriptions = &bindingDescription; vertexInputInfo.pVertexAttributeDescriptions = attributeDescriptions;