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) };