wgl_ctx.c - ifdef HAVE_EGL portions of code

This commit is contained in:
twinaphex 2013-04-06 19:28:19 +02:00
parent a57f03e682
commit 7111558359
2 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

@ -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",
};