Small cleanup in the EGL GLInterface.
This commit is contained in:
parent
63ab203923
commit
09680ccee6
|
@ -96,11 +96,10 @@ bool cInterfaceEGL::Create(void *&window_handle)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_GLES
|
if (s_opengl_mode == MODE_OPENGL)
|
||||||
eglBindAPI(EGL_OPENGL_ES_API);
|
|
||||||
#else
|
|
||||||
eglBindAPI(EGL_OPENGL_API);
|
eglBindAPI(EGL_OPENGL_API);
|
||||||
#endif
|
else
|
||||||
|
eglBindAPI(EGL_OPENGL_ES_API);
|
||||||
|
|
||||||
if (!eglChooseConfig( GLWin.egl_dpy, attribs, &config, 1, &num_configs)) {
|
if (!eglChooseConfig( GLWin.egl_dpy, attribs, &config, 1, &num_configs)) {
|
||||||
INFO_LOG(VIDEO, "Error: couldn't get an EGL visual config\n");
|
INFO_LOG(VIDEO, "Error: couldn't get an EGL visual config\n");
|
||||||
|
|
Loading…
Reference in New Issue