mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
Do not call set_nonblock_state for FF buttons if vsync isn't activated.
This commit is contained in:
parent
1af593f910
commit
1794aa6dff
10
gfx/gl.c
10
gfx/gl.c
@ -983,12 +983,10 @@ static void gl_free(void *data)
|
||||
|
||||
static void gl_set_nonblock_state(void *data, bool state)
|
||||
{
|
||||
gl_t *gl = (gl_t*)data;
|
||||
if (gl->vsync)
|
||||
{
|
||||
RARCH_LOG("GL VSync => %s\n", state ? "off" : "on");
|
||||
gfx_ctx_set_swap_interval(state ? 0 : 1, true);
|
||||
}
|
||||
(void)data;
|
||||
|
||||
RARCH_LOG("GL VSync => %s\n", state ? "off" : "on");
|
||||
gfx_ctx_set_swap_interval(state ? 0 : 1, true);
|
||||
}
|
||||
|
||||
static void *gl_init(const video_info_t *video, const input_driver_t **input, void **input_data)
|
||||
|
@ -72,8 +72,10 @@ static void set_fast_forward_button(bool new_button_state, bool new_hold_button_
|
||||
|
||||
if (update_sync)
|
||||
{
|
||||
if (g_extern.video_active)
|
||||
// Only apply non-block-state for video if we're using vsync.
|
||||
if (g_extern.video_active && g_settings.video.vsync)
|
||||
video_set_nonblock_state_func(syncing_state);
|
||||
|
||||
if (g_extern.audio_active)
|
||||
audio_set_nonblock_state_func(g_settings.audio.sync ? syncing_state : true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user