mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-28 21:55:47 +00:00
(Android) (Nvidia Shield Portable) Some kind of edge case happens
on Shield Portable that causes it to keep allocating for a long time until it simply fails and falls back to the bitmap font renderer. Currently seems to be happening on character 160. Quick hack until we fix the real underlying issue.
This commit is contained in:
parent
a06dd9c3a2
commit
f7a443b4e9
@ -93,6 +93,8 @@ alloc_atlas:
|
||||
|
||||
/* make sure important characters fit */
|
||||
if (isprint(i) && !isspace(i) && (!g->width || !g->height))
|
||||
{
|
||||
if (i != 160)
|
||||
{
|
||||
/* increase atlas by 20% in all directions */
|
||||
self->atlas.width *= 1.2;
|
||||
@ -103,6 +105,7 @@ alloc_atlas:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user