mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Cleanups
This commit is contained in:
parent
2630727daa
commit
318d5490cd
@ -204,17 +204,13 @@ static bool gfx_ctx_khr_display_bind_api(void *data,
|
||||
{
|
||||
if (api == GFX_CTX_VULKAN_API)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool gfx_ctx_khr_display_has_focus(void *data)
|
||||
{
|
||||
(void)data;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void gfx_ctx_khr_display_set_flags(void *data, uint32_t flags) { }
|
||||
static bool gfx_ctx_khr_display_has_focus(void *data) { return true; }
|
||||
static bool gfx_ctx_khr_display_suppress_screensaver(void *data, bool enable) { return false; }
|
||||
static gfx_ctx_proc_t gfx_ctx_khr_display_get_proc_address(const char *symbol) { return NULL; }
|
||||
|
||||
static void gfx_ctx_khr_display_set_swap_interval(void *data,
|
||||
int swap_interval)
|
||||
@ -236,8 +232,6 @@ static void gfx_ctx_khr_display_swap_buffers(void *data)
|
||||
vulkan_acquire_next_image(&khr->vk);
|
||||
}
|
||||
|
||||
static gfx_ctx_proc_t gfx_ctx_khr_display_get_proc_address(const char *symbol) { return NULL; }
|
||||
|
||||
static uint32_t gfx_ctx_khr_display_get_flags(void *data)
|
||||
{
|
||||
uint32_t flags = 0;
|
||||
@ -249,8 +243,6 @@ static uint32_t gfx_ctx_khr_display_get_flags(void *data)
|
||||
return flags;
|
||||
}
|
||||
|
||||
static void gfx_ctx_khr_display_set_flags(void *data, uint32_t flags) { }
|
||||
|
||||
static void *gfx_ctx_khr_display_get_context_data(void *data)
|
||||
{
|
||||
khr_display_ctx_data_t *khr = (khr_display_ctx_data_t*)data;
|
||||
|
@ -188,8 +188,6 @@ static enum gfx_ctx_api gfx_ctx_opendingux_get_api(void *data)
|
||||
static bool gfx_ctx_opendingux_bind_api(void *data,
|
||||
enum gfx_ctx_api api, unsigned major, unsigned minor)
|
||||
{
|
||||
(void)data;
|
||||
|
||||
opendingux_api = api;
|
||||
|
||||
if (api == GFX_CTX_OPENGL_ES_API)
|
||||
@ -197,18 +195,9 @@ static bool gfx_ctx_opendingux_bind_api(void *data,
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool gfx_ctx_opendingux_has_focus(void *data)
|
||||
{
|
||||
(void)data;
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool gfx_ctx_opendingux_suppress_screensaver(void *data, bool enable)
|
||||
{
|
||||
(void)data;
|
||||
(void)enable;
|
||||
return false;
|
||||
}
|
||||
static void gfx_ctx_opendingux_set_flags(void *data, uint32_t flags) { }
|
||||
static bool gfx_ctx_opendingux_has_focus(void *data) { return true; }
|
||||
static bool gfx_ctx_opendingux_suppress_screensaver(void *data, bool enable) { return false; }
|
||||
|
||||
static void gfx_ctx_opendingux_swap_buffers(void *data)
|
||||
{
|
||||
@ -254,11 +243,6 @@ static uint32_t gfx_ctx_opendingux_get_flags(void *data)
|
||||
return flags;
|
||||
}
|
||||
|
||||
static void gfx_ctx_opendingux_set_flags(void *data, uint32_t flags)
|
||||
{
|
||||
(void)data;
|
||||
}
|
||||
|
||||
const gfx_ctx_driver_t gfx_ctx_opendingux_fbdev = {
|
||||
gfx_ctx_opendingux_init,
|
||||
gfx_ctx_opendingux_destroy,
|
||||
|
@ -58,7 +58,7 @@ static void vita_input_driver(void *data,
|
||||
input_driver_t **input, void **input_data) { }
|
||||
static bool vita_has_focus(void *data) { return true; }
|
||||
static bool vita_suppress_screensaver(void *data, bool enable) { return false; }
|
||||
static enum gfx_ctx_api vita_get_api(void *data) { return GFX_CTX_NONE; }
|
||||
static enum gfx_ctx_api vita_get_api(void *data) { return GFX_CTX_OPENGL_ES_API; }
|
||||
static bool vita_bind_api(void *data, enum gfx_ctx_api api, unsigned major, unsigned minor) { return true; }
|
||||
static void vita_show_mouse(void *data, bool state) { }
|
||||
static void vita_bind_hw_render(void *data, bool enable) { }
|
||||
|
@ -194,7 +194,6 @@ static enum gfx_ctx_api gfx_ctx_vivante_get_api(void *data)
|
||||
static bool gfx_ctx_vivante_bind_api(void *data,
|
||||
enum gfx_ctx_api api, unsigned major, unsigned minor)
|
||||
{
|
||||
|
||||
viv_api = api;
|
||||
|
||||
if (api == GFX_CTX_OPENGL_ES_API)
|
||||
@ -202,18 +201,9 @@ static bool gfx_ctx_vivante_bind_api(void *data,
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool gfx_ctx_vivante_has_focus(void *data)
|
||||
{
|
||||
(void)data;
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool gfx_ctx_vivante_suppress_screensaver(void *data, bool enable)
|
||||
{
|
||||
(void)data;
|
||||
(void)enable;
|
||||
return false;
|
||||
}
|
||||
static void gfx_ctx_vivante_set_flags(void *data, uint32_t flags) { }
|
||||
static bool gfx_ctx_vivante_has_focus(void *data) { return true; }
|
||||
static bool gfx_ctx_vivante_suppress_screensaver(void *data, bool enable) { return false; }
|
||||
|
||||
static void gfx_ctx_vivante_set_swap_interval(void *data, int swap_interval)
|
||||
{
|
||||
@ -260,11 +250,6 @@ static uint32_t gfx_ctx_vivante_get_flags(void *data)
|
||||
return flags;
|
||||
}
|
||||
|
||||
static void gfx_ctx_vivante_set_flags(void *data, uint32_t flags)
|
||||
{
|
||||
(void)data;
|
||||
}
|
||||
|
||||
const gfx_ctx_driver_t gfx_ctx_vivante_fbdev = {
|
||||
gfx_ctx_vivante_init,
|
||||
gfx_ctx_vivante_destroy,
|
||||
|
Loading…
x
Reference in New Issue
Block a user