Skip to content

Commit

Permalink
sysgpu/metal: waitUntilScheduled -> waitUntilCompleted
Browse files Browse the repository at this point in the history
  • Loading branch information
foxnne committed Dec 6, 2024
1 parent 10400dd commit 0f6f4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sysgpu/metal.zig
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ pub const SwapChain = struct {
command_buffer.presentDrawable(@ptrCast(swapchain.current_drawable)); // TODO - objc casting?
command_buffer.commit();
if (swapchain.surface.layer.displaySyncEnabled())
command_buffer.waitUntilScheduled();
command_buffer.waitUntilCompleted();
}
}
};
Expand Down

0 comments on commit 0f6f4f6

Please sign in to comment.