(gl) Remove context switch calls from set_osd_msg

It's not needed because this function is always called from the
frontend/menu context. The video driver handles SET_MESSAGE
environment call in the frame() function (msg argument).
This commit is contained in:
Higor Eurípedes 2015-05-12 09:31:00 -03:00
parent 630dd35979
commit c5940b32b6

View File

@ -3148,11 +3148,7 @@ static void gl_set_osd_msg(void *data, const char *msg,
font = driver->font_osd_data;
if (driver->font_osd_driver && font)
{
context_bind_hw_render(gl, false);
font_driver->render_msg(font, msg, params);
context_bind_hw_render(gl, true);
}
}
static void gl_show_mouse(void *data, bool state)