diff options
| author | Ryan Houdek <Sonicadvance1@Gmail.com> | 2013-12-12 22:08:54 +0000 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@Gmail.com> | 2013-12-12 22:08:54 +0000 |
| commit | 09680ccee651d0b6d0790cc704338fd1d92bb683 (patch) | |
| tree | 8c5bd43a8754388ae99d7a29ccdef5b87efbed75 /Source | |
| parent | 63ab2039236d8a169d13f0e6aeea103b5028b024 (diff) | |
Small cleanup in the EGL GLInterface.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinWX/Src/GLInterface/EGL.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/Core/DolphinWX/Src/GLInterface/EGL.cpp b/Source/Core/DolphinWX/Src/GLInterface/EGL.cpp index 9ca95a5886..21c13897b8 100644 --- a/Source/Core/DolphinWX/Src/GLInterface/EGL.cpp +++ b/Source/Core/DolphinWX/Src/GLInterface/EGL.cpp @@ -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"); |
