mirror of
https://github.com/libretro/RetroArch
synced 2025-03-24 13:43:32 +00:00
(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:
parent
630dd35979
commit
c5940b32b6
@ -3148,11 +3148,7 @@ static void gl_set_osd_msg(void *data, const char *msg,
|
|||||||
font = driver->font_osd_data;
|
font = driver->font_osd_data;
|
||||||
|
|
||||||
if (driver->font_osd_driver && font)
|
if (driver->font_osd_driver && font)
|
||||||
{
|
|
||||||
context_bind_hw_render(gl, false);
|
|
||||||
font_driver->render_msg(font, msg, params);
|
font_driver->render_msg(font, msg, params);
|
||||||
context_bind_hw_render(gl, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gl_show_mouse(void *data, bool state)
|
static void gl_show_mouse(void *data, bool state)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user