mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
(context drivers) Cleanups
This commit is contained in:
parent
343a04e2b8
commit
b8cc047d20
@ -520,7 +520,6 @@ static void android_gfx_ctx_swap_buffers(void *data)
|
||||
{
|
||||
case GFX_CTX_OPENGL_API:
|
||||
case GFX_CTX_OPENGL_ES_API:
|
||||
case GFX_CTX_OPENVG_API:
|
||||
#ifdef HAVE_EGL
|
||||
egl_swap_buffers(&and->egl);
|
||||
#endif
|
||||
|
@ -33,8 +33,6 @@ typedef struct
|
||||
unsigned height;
|
||||
} khr_display_ctx_data_t;
|
||||
|
||||
static enum gfx_ctx_api khr_api = GFX_CTX_NONE;
|
||||
|
||||
static void gfx_ctx_khr_display_destroy(void *data)
|
||||
{
|
||||
khr_display_ctx_data_t *khr = (khr_display_ctx_data_t*)data;
|
||||
@ -198,14 +196,12 @@ static void gfx_ctx_khr_display_input_driver(void *data,
|
||||
|
||||
static enum gfx_ctx_api gfx_ctx_khr_display_get_api(void *data)
|
||||
{
|
||||
return khr_api;
|
||||
return GFX_CTX_VULKAN_API;
|
||||
}
|
||||
|
||||
static bool gfx_ctx_khr_display_bind_api(void *data,
|
||||
enum gfx_ctx_api api, unsigned major, unsigned minor)
|
||||
{
|
||||
khr_api = api;
|
||||
|
||||
if (api == GFX_CTX_VULKAN_API)
|
||||
return true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user