From 3400e56340c6a5ac5b8752fab34d73b5de050bcc Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Mon, 9 Mar 2026 21:07:52 +0100 Subject: [PATCH] crash fix --- implementations/Crafter.Graphics-Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implementations/Crafter.Graphics-Window.cpp b/implementations/Crafter.Graphics-Window.cpp index a57569d..2b65ee1 100644 --- a/implementations/Crafter.Graphics-Window.cpp +++ b/implementations/Crafter.Graphics-Window.cpp @@ -626,12 +626,12 @@ void Window::Render() { // elements.erase(std::remove(elements.begin(), elements.end(), static_cast(nullptr)), elements.end()); // std::sort(elements.begin(), elements.end(), [](Transform* a, Transform* b){ return a->anchor.z < b->anchor.z; }); renderer.Render(); - #endif #ifdef CRAFTER_GRAPHICS_WINDOW_WAYLAND wl_surface_attach(surface, buffer, 0, 0); wl_surface_commit(surface); wl_surface_damage(surface, 0, 0, 10000, 100000); #endif + #endif #ifdef CRAFTER_GRAPHICS_RENDERER_VULKAN // Acquire the next image from the swap chain Device::CheckVkResult(vkAcquireNextImageKHR(Device::device, swapChain, UINT64_MAX, semaphores.presentComplete, (VkFence)nullptr, ¤tBuffer));