remove queue wait idle from swapchain rebuild
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user