summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@Gmail.com>2013-12-12 22:08:54 +0000
committerRyan Houdek <Sonicadvance1@Gmail.com>2013-12-12 22:08:54 +0000
commit09680ccee651d0b6d0790cc704338fd1d92bb683 (patch)
tree8c5bd43a8754388ae99d7a29ccdef5b87efbed75 /Source/Core
parent63ab2039236d8a169d13f0e6aeea103b5028b024 (diff)
Small cleanup in the EGL GLInterface.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Src/GLInterface/EGL.cpp9
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");