mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 06:50:32 +00:00
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
Block a user