Disable gl hard sync in menu

This commit is contained in:
Tatsuya79 2018-05-17 17:24:10 +02:00 committed by GitHub
parent c46d84b799
commit e96463645d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);