mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
(opendingux_fbdev_ctx.c) More HAVE_EGL ifdefs
This commit is contained in:
parent
ac584330bb
commit
f3cc1a9b59
@ -54,6 +54,7 @@ static void gfx_ctx_opendingux_destroy(void *data)
|
||||
|
||||
static void *gfx_ctx_opendingux_init(void *video_driver)
|
||||
{
|
||||
#ifdef HAVE_EGL
|
||||
EGLint n;
|
||||
EGLint major, minor;
|
||||
EGLint format;
|
||||
@ -69,6 +70,7 @@ static void *gfx_ctx_opendingux_init(void *video_driver)
|
||||
EGL_SAMPLES, 0,
|
||||
EGL_NONE
|
||||
};
|
||||
#endif
|
||||
opendingux_ctx_data_t *viv = (opendingux_ctx_data_t*)
|
||||
calloc(1, sizeof(*viv));
|
||||
|
||||
@ -92,7 +94,9 @@ static void *gfx_ctx_opendingux_init(void *video_driver)
|
||||
return viv;
|
||||
|
||||
error:
|
||||
#ifdef HAVE_EGL
|
||||
RARCH_ERR("[opendingux fbdev]: EGL error: %d.\n", eglGetError());
|
||||
#endif
|
||||
gfx_ctx_opendingux_destroy(viv);
|
||||
return NULL;
|
||||
}
|
||||
@ -153,11 +157,13 @@ static bool gfx_ctx_opendingux_set_video_mode(void *data,
|
||||
unsigned width, unsigned height,
|
||||
bool fullscreen)
|
||||
{
|
||||
#ifdef HAVE_EGL
|
||||
EGLNativeWindowType window;
|
||||
static const EGLint attribs[] = {
|
||||
EGL_CONTEXT_CLIENT_VERSION, 2, /* Use version 2, even for GLES3. */
|
||||
EGL_NONE
|
||||
};
|
||||
#endif
|
||||
opendingux_ctx_data_t *viv = (opendingux_ctx_data_t*)data;
|
||||
|
||||
/* Pick some arbitrary default. */
|
||||
|
Loading…
Reference in New Issue
Block a user