From 825a676d36833e31d5efe3e1b04201d249c6a637 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 25 Oct 2024 11:44:33 -0700 Subject: [PATCH] revise comments --- src/Core.zig | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Core.zig b/src/Core.zig index 05997b919a..631ff29609 100644 --- a/src/Core.zig +++ b/src/Core.zig @@ -355,11 +355,8 @@ pub fn deinit(entities: *mach.Entities.Mod, core: *Mod) !void { } } - // GPU backend (ie. d3d12, metal, opengl, vulkan) - // - // Must be released BEFORE platform deinit. - // Otherwise, we enter a race condition where GPU might try to present - // to the window server. + // GPU backend must be released BEFORE platform deinit, otherwise we may enter a race + // where the GPU might try to present to the window server. state.swap_chain.release(); state.queue.release(); state.device.release(); @@ -367,7 +364,7 @@ pub fn deinit(entities: *mach.Entities.Mod, core: *Mod) !void { state.adapter.release(); state.instance.release(); - // Platform (ie. Windows, MacOS, Linux X11, or Wayland) + // Deinit the platform state.platform.deinit(); state.events.deinit();