From 8d2d0f06403b6777e4b591fa84df57b55e9b7809 Mon Sep 17 00:00:00 2001 From: Akemi Date: Sun, 22 Jul 2018 23:07:32 +0200 Subject: cocoa-cb: add Apple Software Renderer support by default the pixel format creation falls back to software renderer when everything fails. this is mostly needed for VMs. additionally one can directly request an sw renderer or exclude it entirely. --- osdep/macosx_application.m | 3 +++ 1 file changed, 3 insertions(+) (limited to 'osdep/macosx_application.m') diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m index 66daa45909..ca613e04f4 100644 --- a/osdep/macosx_application.m +++ b/osdep/macosx_application.m @@ -49,11 +49,14 @@ const struct m_sub_options macos_conf = { OPT_CHOICE_OR_INT("macos-fs-animation-duration", macos_fs_animation_duration, 0, 0, 1000, ({"default", -1})), + OPT_CHOICE("cocoa-cb-sw-renderer", cocoa_cb_sw_renderer, 0, + ({"auto", -1}, {"no", 0}, {"yes", 1})), {0} }, .size = sizeof(struct macos_opts), .defaults = &(const struct macos_opts){ .macos_fs_animation_duration = -1, + .cocoa_cb_sw_renderer = -1, }, }; -- cgit v1.2.3