From cf048261bc5169b647f3681e016773d7cc585d38 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Fri, 25 Oct 2024 23:20:31 -0500 Subject: render: fix a build bug in the vulkan renderer Fix a bug causing the build to fail during the compile step of the Vulkan renderer. The frame number has been moved into the swapchain struct and no longer exists in the context struct. Therefore, its initialization should be done inside the swapchain init function. Signed-off-by: Danny Holman --- render/vulkan/swapchain.c | 1 + 1 file changed, 1 insertion(+) (limited to 'render/vulkan/swapchain.c') diff --git a/render/vulkan/swapchain.c b/render/vulkan/swapchain.c index 18b87a5..1ecb644 100644 --- a/render/vulkan/swapchain.c +++ b/render/vulkan/swapchain.c @@ -81,6 +81,7 @@ struct vkswapchain* create_swapchain(struct vksurface *surface, struct vkdev *de VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, VK_IMAGE_ASPECT_DEPTH_BIT, 1); + swapchain->frame = 0; log_output(LOG_DEBUG, "Initialized swapchain"); return swapchain; } -- cgit v1.2.3