[LIBNX] Workaround for freezes caused by freetype with video threaded, revert later
This commit is contained in:
parent
41c1b5ce97
commit
b4ae829b3f
|
@ -56,6 +56,14 @@ int font_renderer_create_default(
|
||||||
for (i = 0; font_backends[i]; i++)
|
for (i = 0; font_backends[i]; i++)
|
||||||
{
|
{
|
||||||
const char *path = font_path;
|
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)
|
if (!path)
|
||||||
path = font_backends[i]->get_default_font();
|
path = font_backends[i]->get_default_font();
|
||||||
|
|
Loading…
Reference in New Issue