(GL1) Update code so that GL Hard Sync will work with menu

enabled [Hard sync doesn't seem implemented for GL1 anyway]
This commit is contained in:
twinaphex 2021-11-20 03:40:48 +01:00
parent 282c8ddc5f
commit d04dee7ee0
1 changed files with 6 additions and 4 deletions

View File

@ -949,16 +949,18 @@ static bool gl1_gfx_frame(void *data, const void *frame,
} }
#endif #endif
/* check if we are fast forwarding or in menu, if we are ignore hard sync */ /* check if we are fast forwarding or in menu,
if (hard_sync if we are ignore hard sync */
if ( hard_sync
&& !video_info->input_driver_nonblock_state && !video_info->input_driver_nonblock_state
&& !gl1->menu_texture_enable) )
{ {
glClear(GL_COLOR_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT);
glFinish(); glFinish();
} }
if(draw){ if (draw)
{
glClearColor(0.0f, 0.0f, 0.0f, 1.0f); glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT);
} }