From 7c0b796315afaf1337b94527e0d348ef6fabbd35 Mon Sep 17 00:00:00 2001 From: Ali Chraghi Date: Sat, 5 Aug 2023 04:45:18 +0330 Subject: [PATCH] engine: init device --- src/engine.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine.zig b/src/engine.zig index 9811a25ae7..f7ed99746c 100644 --- a/src/engine.zig +++ b/src/engine.zig @@ -18,6 +18,7 @@ pub const Module = struct { core.allocator = allocator; try core.init(.{}); + mach.state().device = core.device; mach.state().exit = false; try adapter.send(.init);