From 612aeea7d98ada83af41d0986baedfce823c4e79 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Sat, 18 Apr 2026 12:28:57 -0500 Subject: [PATCH] vkDeviceWaitIdle: missing chk --- tutorial/docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorial/docs/index.md b/tutorial/docs/index.md index 1879bf2..5c39174 100644 --- a/tutorial/docs/index.md +++ b/tutorial/docs/index.md @@ -1715,7 +1715,7 @@ The swapchain needs to be recreated when the window is resized or if its surface ```cpp if (updateSwapchain) { updateSwapchain = false; - vkDeviceWaitIdle(device); + chk(vkDeviceWaitIdle(device)); chk(vkGetPhysicalDeviceSurfaceCapabilitiesKHR(devices[deviceIndex], surface, &surfaceCaps)); swapchainCI.oldSwapchain = swapchain; swapchainCI.imageExtent = { .width = static_cast(resized->size.x), .height = static_cast(resized->size.y) };