From e96463645d5ea8e685a93531e46e465931da40d7 Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Thu, 17 May 2018 17:24:10 +0200 Subject: [PATCH] Disable gl hard sync in menu --- gfx/drivers/gl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index 1c4743e038..1008697366 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -1202,8 +1202,11 @@ static bool gl_frame(void *data, const void *frame, video_info->cb_swap_buffers(video_info->context_data, video_info); - /* check if we are fast forwarding, if we are ignore hard sync */ - if (gl->have_sync && video_info->hard_sync && !video_info->input_driver_nonblock_state) + /* check if we are fast forwarding or in menu, if we are ignore hard sync */ + if ( gl->have_sync + && video_info->hard_sync + && !video_info->input_driver_nonblock_state + && !gl->menu_texture_enable) { glClear(GL_COLOR_BUFFER_BIT);