From d04dee7ee05677eac3b3b6293ad656a7d9754bb3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 20 Nov 2021 03:40:48 +0100 Subject: [PATCH] (GL1) Update code so that GL Hard Sync will work with menu enabled [Hard sync doesn't seem implemented for GL1 anyway] --- gfx/drivers/gl1.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gfx/drivers/gl1.c b/gfx/drivers/gl1.c index 7a6e994ca8..935d93d4ce 100644 --- a/gfx/drivers/gl1.c +++ b/gfx/drivers/gl1.c @@ -949,16 +949,18 @@ static bool gl1_gfx_frame(void *data, const void *frame, } #endif - /* check if we are fast forwarding or in menu, if we are ignore hard sync */ - if (hard_sync + /* check if we are fast forwarding or in menu, + if we are ignore hard sync */ + if ( hard_sync && !video_info->input_driver_nonblock_state - && !gl1->menu_texture_enable) + ) { glClear(GL_COLOR_BUFFER_BIT); glFinish(); } - if(draw){ + if (draw) + { glClearColor(0.0f, 0.0f, 0.0f, 1.0f); glClear(GL_COLOR_BUFFER_BIT); }