From ecb9563f2a4a0f9932190b3e2bfe0e5818ca6431 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 9 Aug 2023 15:14:39 -0700 Subject: [PATCH] apprt/glfw: warn that the macos version has bugs --- src/apprt/glfw.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/apprt/glfw.zig b/src/apprt/glfw.zig index 0cef7251f..6dd7c431d 100644 --- a/src/apprt/glfw.zig +++ b/src/apprt/glfw.zig @@ -39,6 +39,13 @@ pub const App = struct { pub const Options = struct {}; pub fn init(core_app: *CoreApp, _: Options) !App { + if (comptime builtin.target.isDarwin()) { + log.warn("WARNING WARNING WARNING: GLFW ON MAC HAS BUGS.", .{}); + log.warn("You should use the AppKit-based app instead. The official download", .{}); + log.warn("is properly built and available from GitHub. If you're building from", .{}); + log.warn("source, see the README for details on how to build the AppKit app.", .{}); + } + if (!glfw.init(.{})) { if (glfw.getError()) |err| { log.err("error initializing GLFW err={} msg={s}", .{