From 7e6787147eed77c3c467468151f7c30a169443ec Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 10 Apr 2015 08:34:28 +0200 Subject: [PATCH] (D3D) Use gfx_ctx_swap_interval --- gfx/d3d/d3d.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 1efeb1b358..01aca84011 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -323,15 +323,13 @@ static void d3d_calculate_rect(d3d_video_t *d3d, static void d3d_set_nonblock_state(void *data, bool state) { d3d_video_t *d3d = (d3d_video_t*)data; - const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr(); if (!d3d) return; d3d->video_info.vsync = !state; - if (ctx && ctx->swap_interval) - ctx->swap_interval(d3d, state ? 0 : 1); + gfx_ctx_swap_interval(d3d, state ? 0 : 1); } static bool d3d_alive(void *data)