Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed the need for this temporary variable.
  • Loading branch information
Sonicadvance1 committed Jan 24, 2013
1 parent 52ead25 commit 10418d4
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions Source/Core/DolphinWX/Src/GLInterface/EGL.cpp
Expand Up @@ -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);
Expand All @@ -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
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 10418d4

Please sign in to comment.