Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Small cleanup in the EGL GLInterface.
  • Loading branch information
Sonicadvance1 committed Dec 12, 2013
1 parent 63ab203 commit 09680cc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Source/Core/DolphinWX/Src/GLInterface/EGL.cpp
Expand Up @@ -96,11 +96,10 @@ bool cInterfaceEGL::Create(void *&window_handle)
return false;
}

#ifdef USE_GLES
eglBindAPI(EGL_OPENGL_ES_API);
#else
eglBindAPI(EGL_OPENGL_API);
#endif
if (s_opengl_mode == MODE_OPENGL)
eglBindAPI(EGL_OPENGL_API);
else
eglBindAPI(EGL_OPENGL_ES_API);

if (!eglChooseConfig( GLWin.egl_dpy, attribs, &config, 1, &num_configs)) {
INFO_LOG(VIDEO, "Error: couldn't get an EGL visual config\n");
Expand Down

0 comments on commit 09680cc

Please sign in to comment.