Fix some synchronization in the example + remove unused import

This commit is contained in:
Robin Voetter
2020-07-11 00:42:20 +02:00
parent b344d97f98
commit 0955d94ac5
2 changed files with 10 additions and 6 deletions

View File

@@ -153,8 +153,9 @@ pub fn main() !void {
c.glfwSwapBuffers(window);
c.glfwPollEvents();
try gc.vkd.queueWaitIdle(gc.graphics_queue.handle);
}
try swapchain.waitForAllFences();
}
fn uploadVertices(gc: *const GraphicsContext, pool: vk.CommandPool, buffer: vk.Buffer, memory: vk.DeviceMemory) !void {