remove queue wait idle from swapchain rebuild

This commit is contained in:
2024-11-25 20:09:57 -05:00
parent 3e4b70573c
commit b8d89122ab

View File

@@ -151,7 +151,6 @@ pub fn rebuild(self: *Self) !void {
const caps = try ctx.getPhysicalDeviceSurfaceCapabilities(); const caps = try ctx.getPhysicalDeviceSurfaceCapabilities();
self.cinfo.image_extent = caps.current_extent; self.cinfo.image_extent = caps.current_extent;
try ctx.D.queueWaitIdle(ctx.queue.*);
self.handle = try ctx.D.createSwapchainKHR(&self.cinfo, null); self.handle = try ctx.D.createSwapchainKHR(&self.cinfo, null);
ctx.D.destroySwapchainKHR(self.cinfo.old_swapchain, null); ctx.D.destroySwapchainKHR(self.cinfo.old_swapchain, null);
self.cinfo.old_swapchain = self.handle; self.cinfo.old_swapchain = self.handle;