mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
wgl_ctx.c - ifdef HAVE_EGL portions of code
This commit is contained in:
parent
a57f03e682
commit
7111558359
@ -19,7 +19,7 @@
|
||||
#include "../gfx_common.h"
|
||||
#include "../gl_common.h"
|
||||
|
||||
#include <EGL/egl.h> /* Requires NDK r5 or newer */
|
||||
#include <EGL/egl.h>
|
||||
#include <android/looper.h>
|
||||
|
||||
#include "../../frontend/frontend_android.h"
|
||||
|
@ -429,6 +429,7 @@ static bool gfx_ctx_bind_api(enum gfx_ctx_api api)
|
||||
return api == GFX_CTX_OPENGL_API;
|
||||
}
|
||||
|
||||
#ifdef HAVE_EGL
|
||||
static bool gfx_ctx_init_egl_image_buffer(const video_info_t *video)
|
||||
{
|
||||
return false;
|
||||
@ -438,6 +439,7 @@ static bool gfx_ctx_write_egl_image(const void *frame, unsigned width, unsigned
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void gfx_ctx_show_mouse(bool state)
|
||||
{
|
||||
@ -459,8 +461,10 @@ const gfx_ctx_driver_t gfx_ctx_wgl = {
|
||||
gfx_ctx_swap_buffers,
|
||||
gfx_ctx_input_driver,
|
||||
gfx_ctx_get_proc_address,
|
||||
#ifdef HAVE_EGL
|
||||
gfx_ctx_init_egl_image_buffer,
|
||||
gfx_ctx_write_egl_image,
|
||||
#endif
|
||||
gfx_ctx_show_mouse,
|
||||
"wgl",
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user