summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2013-01-24 10:53:37 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2013-01-24 10:53:37 -0600
commit10418d449fc1d04bb39fcc28afda0e19f14441da (patch)
tree6ba045a4b671362381526a91f1ad6aab7ffd4480 /Source
parent52ead255342796ea3be71aa1666dd2447f96e204 (diff)
Removed the need for this temporary variable.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinWX/Src/GLInterface/EGL.cpp19
1 files changed, 5 insertions, 14 deletions
diff --git a/Source/Core/DolphinWX/Src/GLInterface/EGL.cpp b/Source/Core/DolphinWX/Src/GLInterface/EGL.cpp
index a00df0cffa..304eb92059 100644
--- a/Source/Core/DolphinWX/Src/GLInterface/EGL.cpp
+++ b/Source/Core/DolphinWX/Src/GLInterface/EGL.cpp
@@ -48,7 +48,6 @@ bool cInterfaceEGL::Create(void *&window_handle)
s_backbuffer_width = _twidth;
s_backbuffer_height = _theight;
- const char *s;
EGLint egl_major, egl_minor;
GLWin.dpy = XOpenDisplay(NULL);
@@ -69,17 +68,10 @@ bool cInterfaceEGL::Create(void *&window_handle)
return false;
}
- s = eglQueryString(GLWin.egl_dpy, EGL_VERSION);
- INFO_LOG(VIDEO, "EGL_VERSION = %s\n", s);
-
- s = eglQueryString(GLWin.egl_dpy, EGL_VENDOR);
- INFO_LOG(VIDEO, "EGL_VENDOR = %s\n", s);
-
- s = eglQueryString(GLWin.egl_dpy, EGL_EXTENSIONS);
- INFO_LOG(VIDEO, "EGL_EXTENSIONS = %s\n", s);
-
- s = eglQueryString(GLWin.egl_dpy, EGL_CLIENT_APIS);
- INFO_LOG(VIDEO, "EGL_CLIENT_APIS = %s\n", s);
+ INFO_LOG(VIDEO, "EGL_VERSION = %s\n", eglQueryString(GLWin.egl_dpy, EGL_VERSION));
+ INFO_LOG(VIDEO, "EGL_VENDOR = %s\n", eglQueryString(GLWin.egl_dpy, EGL_VENDOR));
+ INFO_LOG(VIDEO, "EGL_EXTENSIONS = %s\n", eglQueryString(GLWin.egl_dpy, EGL_EXTENSIONS));
+ INFO_LOG(VIDEO, "EGL_CLIENT_APIS = %s\n", eglQueryString(GLWin.egl_dpy, EGL_CLIENT_APIS));
// attributes for a visual in RGBA format with at least
// 8 bits per color and a 24 bit depth buffer
@@ -120,7 +112,7 @@ bool cInterfaceEGL::Create(void *&window_handle)
}
if (!eglGetConfigAttrib(GLWin.egl_dpy, config, EGL_NATIVE_VISUAL_ID, &vid)) {
- ERROG_LOG(VIDEO, "Error: eglGetConfigAttrib() failed\n");
+ ERROR_LOG(VIDEO, "Error: eglGetConfigAttrib() failed\n");
return false;
}
@@ -160,7 +152,6 @@ bool cInterfaceEGL::Create(void *&window_handle)
return false;
}
-
INFO_LOG(VIDEO, "GL_VENDOR: %s\n", glGetString(GL_VENDOR));
INFO_LOG(VIDEO, "GL_RENDERER: %s\n", glGetString(GL_RENDERER));
INFO_LOG(VIDEO, "GL_VERSION: %s\n", glGetString(GL_VERSION));