diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index b3180b24be..486f976c28 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -2719,6 +2719,11 @@ static bool gl2_frame(void *data, const void *frame, #endif #endif +#ifdef HAVE_OVERLAY + if (gl->overlay_enable) + gl2_render_overlay(gl, video_info); +#endif + if (!string_is_empty(msg)) { 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); } -#ifdef HAVE_OVERLAY - if (gl->overlay_enable) - gl2_render_overlay(gl, video_info); -#endif - video_info->cb_update_window_title( video_info->context_data, video_info);