From b4ae829b3fb97a515f7674ad0bf9a5cdd17f245b Mon Sep 17 00:00:00 2001 From: M4xw Date: Sat, 29 Sep 2018 03:01:41 +0200 Subject: [PATCH] [LIBNX] Workaround for freezes caused by freetype with video threaded, revert later --- gfx/font_driver.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gfx/font_driver.c b/gfx/font_driver.c index 9081c721bb..1f7edce0aa 100644 --- a/gfx/font_driver.c +++ b/gfx/font_driver.c @@ -56,6 +56,14 @@ int font_renderer_create_default( for (i = 0; font_backends[i]; i++) { const char *path = font_path; + /* + Switch libnx freetype is bugged on thread, skip + TODO: remove when fixed + */ +#if defined(HAVE_LIBNX) && defined(HAVE_FREETYPE) + if(font_backends[i] == &freetype_font_renderer && *video_driver_get_threaded()) // freetype + continue; +#endif if (!path) path = font_backends[i]->get_default_font();