Fix ifdefs for eglBindAPI in gl.c.

HAVE_OPENGL_MODERN is only defined for PSL1GHT at the moment.
This commit is contained in:
Themaister 2012-09-19 09:05:16 +02:00
parent b78482d3c5
commit dc385ad0c5

View File

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