From e63f69572f41c76025e50711d702986323c17d72 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 24 Apr 2022 10:48:24 -0700 Subject: [PATCH] disable retina framebuffer on mac, see comment --- src/Window.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Window.zig b/src/Window.zig index 811e33a46..ae659cf90 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -57,6 +57,11 @@ pub fn create(alloc: Allocator, loop: libuv.Loop) !*Window { .opengl_profile = .opengl_core_profile, .opengl_forward_compat = true, .cocoa_graphics_switching = builtin.os.tag == .macos, + + // We need to disable this for now since this causes all sorts + // of artifacts and issues to debug. This probably SHOULD be re-enable + // at some point but only when we're ready to debug. + .cocoa_retina_framebuffer = false, }); errdefer window.destroy();