From 09680ccee651d0b6d0790cc704338fd1d92bb683 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 12 Dec 2013 22:08:54 +0000 Subject: [PATCH] Small cleanup in the EGL GLInterface. --- Source/Core/DolphinWX/Src/GLInterface/EGL.cpp | 9 ++++----- 1 file 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");