Do not call set_nonblock_state for FF buttons if vsync isn't activated.

This commit is contained in:
Themaister 2012-08-12 09:36:15 +02:00
parent 1af593f910
commit 1794aa6dff
2 changed files with 7 additions and 7 deletions

View File

@ -983,12 +983,10 @@ static void gl_free(void *data)
static void gl_set_nonblock_state(void *data, bool state) static void gl_set_nonblock_state(void *data, bool state)
{ {
gl_t *gl = (gl_t*)data; (void)data;
if (gl->vsync)
{ RARCH_LOG("GL VSync => %s\n", state ? "off" : "on");
RARCH_LOG("GL VSync => %s\n", state ? "off" : "on"); gfx_ctx_set_swap_interval(state ? 0 : 1, true);
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) static void *gl_init(const video_info_t *video, const input_driver_t **input, void **input_data)

View File

@ -72,8 +72,10 @@ static void set_fast_forward_button(bool new_button_state, bool new_hold_button_
if (update_sync) 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); video_set_nonblock_state_func(syncing_state);
if (g_extern.audio_active) if (g_extern.audio_active)
audio_set_nonblock_state_func(g_settings.audio.sync ? syncing_state : true); audio_set_nonblock_state_func(g_settings.audio.sync ? syncing_state : true);