From fa1ddc4f0dd567045b2fb29610e3d10aab1206db Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 12 Aug 2022 00:04:33 -0700 Subject: [PATCH] mach: correctly fire resize event on startup once again Signed-off-by: Stephen Gutekanst --- src/platform/native.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/platform/native.zig b/src/platform/native.zig index d79cf8c2..08e25601 100644 --- a/src/platform/native.zig +++ b/src/platform/native.zig @@ -139,9 +139,7 @@ pub const Platform = struct { core.surface = surface; core.current_desc = descriptor; core.target_desc = descriptor; - core.swap_chain = core.device.createSwapChain(core.surface, &core.target_desc); - // TODO: should resize fire on startup here? Might be nice for consistency - + core.swap_chain = null; const cursor_pos = try window.getCursorPos(); return Platform{