Merge pull request #2770 from dankcushions/master

Fix compilation error:
This commit is contained in:
Twinaphex 2016-03-02 23:06:14 +01:00
commit 6a2449bd1e

View File

@ -298,6 +298,15 @@ error:
return NULL;
}
static void gfx_ctx_vc_set_swap_interval(void *data, unsigned swap_interval)
{
vc_ctx_data_t *vc = (vc_ctx_data_t*)data;
#ifdef HAVE_EGL
egl_set_swap_interval(&vc->egl, swap_interval);
#endif
}
static bool gfx_ctx_vc_set_video_mode(void *data,
unsigned width, unsigned height,
bool fullscreen)
@ -588,15 +597,6 @@ error:
return false;
}
static void gfx_ctx_vc_set_swap_interval(void *data, unsigned swap_interval)
{
vc_ctx_data_t *vc = (vc_ctx_data_t*)data;
#ifdef HAVE_EGL
egl_set_swap_interval(&vc->egl, swap_interval);
#endif
}
static void gfx_ctx_vc_swap_buffers(void *data)
{
vc_ctx_data_t *vc = (vc_ctx_data_t*)data;