diff --git a/gfx/context/androidegl_ctx.c b/gfx/context/androidegl_ctx.c index 8ad0e45c4d..fe4211ff55 100644 --- a/gfx/context/androidegl_ctx.c +++ b/gfx/context/androidegl_ctx.c @@ -19,7 +19,7 @@ #include "../gfx_common.h" #include "../gl_common.h" -#include /* Requires NDK r5 or newer */ +#include #include #include "../../frontend/frontend_android.h" diff --git a/gfx/context/wgl_ctx.c b/gfx/context/wgl_ctx.c index e300fd06ca..d7c85cf521 100644 --- a/gfx/context/wgl_ctx.c +++ b/gfx/context/wgl_ctx.c @@ -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", };