From 15760c6a8b67f9a091e412536a712506ecfc341b Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sat, 26 May 2012 15:04:10 +0200 Subject: [PATCH] (PS3) Use gfx_ctx_set_swap_interval in gl_set_nonblock_state too --- ps3/ps3_video_psgl.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ps3/ps3_video_psgl.c b/ps3/ps3_video_psgl.c index 3f4c552e6a..7ca92605e6 100644 --- a/ps3/ps3_video_psgl.c +++ b/ps3/ps3_video_psgl.c @@ -731,14 +731,11 @@ static void gl_free(void *data) static void gl_set_nonblock_state(void *data, bool state) { - gl_t *gl = data; + gl_t *gl = (gl_t*)data; if (gl->vsync) { RARCH_LOG("GL VSync => %s\n", state ? "off" : "on"); - if(state) - glDisable(GL_VSYNC_SCE); - else - glEnable(GL_VSYNC_SCE); + gfx_ctx_set_swap_interval(state ? 0 : 1, true); } }