mach: correctly fire resize event on startup once again

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-12 00:04:33 -07:00 committed by Stephen Gutekanst
parent 4429be4f5f
commit fa1ddc4f0d

View file

@ -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{