mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
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:
parent
885966c16b
commit
2d0c02d21e
@ -298,6 +298,15 @@ error:
|
|||||||
return NULL;
|
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,
|
static bool gfx_ctx_vc_set_video_mode(void *data,
|
||||||
unsigned width, unsigned height,
|
unsigned width, unsigned height,
|
||||||
bool fullscreen)
|
bool fullscreen)
|
||||||
@ -588,15 +597,6 @@ error:
|
|||||||
return false;
|
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)
|
static void gfx_ctx_vc_swap_buffers(void *data)
|
||||||
{
|
{
|
||||||
vc_ctx_data_t *vc = (vc_ctx_data_t*)data;
|
vc_ctx_data_t *vc = (vc_ctx_data_t*)data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user