(gl) Fix font rendering when video_font_enable=false

This commit is contained in:
Higor Eurípedes 2015-05-02 22:41:44 -03:00
parent 42d044a51f
commit 5bfd910cd1

View File

@ -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);
}
}