mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
(gl) Fix font rendering when video_font_enable=false
This commit is contained in:
parent
42d044a51f
commit
5bfd910cd1
@ -3142,10 +3142,13 @@ static void gl_set_osd_msg(void *data, const char *msg,
|
||||
|
||||
font_driver = (const struct font_renderer*)driver->font_osd_driver;
|
||||
|
||||
if (driver->font_osd_driver && driver->font_osd_data)
|
||||
if (!font)
|
||||
font = driver->font_osd_data;
|
||||
|
||||
if (driver->font_osd_driver && font)
|
||||
{
|
||||
context_bind_hw_render(gl, false);
|
||||
font_driver->render_msg(font ? font : driver->font_osd_data, msg, params);
|
||||
font_driver->render_msg(font, msg, params);
|
||||
context_bind_hw_render(gl, true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user