From 933e1a153099cc28dce195bc00383b9feb504b25 Mon Sep 17 00:00:00 2001 From: Vitalii Kravchenko Date: Tue, 3 Sep 2024 21:17:46 +0100 Subject: [PATCH] Bring app to foreground on launch. --- learn_metal/02-argbuffers-no-sdl/02-argbuffers-no-sdl.odin | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/learn_metal/02-argbuffers-no-sdl/02-argbuffers-no-sdl.odin b/learn_metal/02-argbuffers-no-sdl/02-argbuffers-no-sdl.odin index 3100b24..5106e55 100644 --- a/learn_metal/02-argbuffers-no-sdl/02-argbuffers-no-sdl.odin +++ b/learn_metal/02-argbuffers-no-sdl/02-argbuffers-no-sdl.odin @@ -50,10 +50,8 @@ metal_main :: proc() -> (err: ^NS.Error) { }, "CustomWindowDelegate", context)) window->setTitle(NS.MakeConstantString("Use left/right arrow keys to rotate the triangle")) window->setIsVisible(true) - // window->makeKeyAndOrderFront(nil) - - app->finishLaunching() + app->activate() device := MTL.CreateSystemDefaultDevice()