Fix ifdefs for eglBindAPI in gl.c.
HAVE_OPENGL_MODERN is only defined for PSL1GHT at the moment.
This commit is contained in:
parent
b78482d3c5
commit
dc385ad0c5
8
gfx/gl.c
8
gfx/gl.c
|
@ -1251,12 +1251,12 @@ static void *gl_init(const video_info_t *video, const input_driver_t **input, vo
|
|||
return NULL;
|
||||
|
||||
#ifdef HAVE_EGL
|
||||
#ifdef HAVE_OPENGL_MODERN
|
||||
if (!eglBindAPI(EGL_OPENGL_API))
|
||||
return NULL;
|
||||
#elif defined (HAVE_OPENGLES)
|
||||
#ifdef HAVE_OPENGLES
|
||||
if (!eglBindAPI(EGL_OPENGL_ES_API))
|
||||
return NULL;
|
||||
#else
|
||||
if (!eglBindAPI(EGL_OPENGL_API))
|
||||
return NULL;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue