disable retina framebuffer on mac, see comment

This commit is contained in:
Mitchell Hashimoto
2022-04-24 10:48:24 -07:00
parent 9d77e9e335
commit e63f69572f

View File

@ -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();