Fix compilation error:

gfx/drivers_context/vc_egl_ctx.c:591:13: error: static declaration of ‘gfx_ctx_vc_set_swap_interval’ follows non-static declaration
gfx/drivers_context/vc_egl_ctx.c:312:4
This commit is contained in:
Christopher Bransden 2016-03-02 21:31:56 +00:00
parent 885966c16b
commit 2d0c02d21e

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;