gl: draw OSD on top of overlay

This commit is contained in:
Brad Parker 2019-02-17 18:51:19 -05:00
parent 998465d2fc
commit 3a431adf02

View File

@ -2719,6 +2719,11 @@ static bool gl2_frame(void *data, const void *frame,
#endif #endif
#endif #endif
#ifdef HAVE_OVERLAY
if (gl->overlay_enable)
gl2_render_overlay(gl, video_info);
#endif
if (!string_is_empty(msg)) if (!string_is_empty(msg))
{ {
if (video_info->msg_bgcolor_enable) if (video_info->msg_bgcolor_enable)
@ -2726,11 +2731,6 @@ static bool gl2_frame(void *data, const void *frame,
font_driver_render_msg(video_info, NULL, msg, NULL); font_driver_render_msg(video_info, NULL, msg, NULL);
} }
#ifdef HAVE_OVERLAY
if (gl->overlay_enable)
gl2_render_overlay(gl, video_info);
#endif
video_info->cb_update_window_title( video_info->cb_update_window_title(
video_info->context_data, video_info); video_info->context_data, video_info);