diff options
author | Lukas Rusak <lorusak@gmail.com> | 2017-09-15 13:05:32 -0700 |
---|---|---|
committer | Lukas Rusak <lorusak@gmail.com> | 2017-09-18 15:47:20 -0700 |
commit | 56a260206a2c6abca0972fba8e43d779366cebcf (patch) | |
tree | c707e8a3afac6012493f5553990a6b01d0b4308c | |
parent | f5bdcb35aa635e4a1438a0695e4025af3f61cf6e (diff) |
X11: remove unused GetVisual functions
-rw-r--r-- | xbmc/windowing/X11/GLContextEGL.cpp | 47 | ||||
-rw-r--r-- | xbmc/windowing/X11/GLContextEGL.h | 1 |
2 files changed, 0 insertions, 48 deletions
diff --git a/xbmc/windowing/X11/GLContextEGL.cpp b/xbmc/windowing/X11/GLContextEGL.cpp index 68045f952c..db4f30d312 100644 --- a/xbmc/windowing/X11/GLContextEGL.cpp +++ b/xbmc/windowing/X11/GLContextEGL.cpp @@ -363,50 +363,3 @@ void CGLContextEGL::QueryExtensions() CLog::Log(LOGDEBUG, "EGL_EXTENSIONS:%s", m_extensions.c_str()); } - -XVisualInfo* CGLContextEGL::GetVisual() -{ - GLint att[] = - { - EGL_RED_SIZE, 8, - EGL_GREEN_SIZE, 8, - EGL_BLUE_SIZE, 8, - EGL_ALPHA_SIZE, 8, - EGL_BUFFER_SIZE, 32, - EGL_DEPTH_SIZE, 24, - EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, - EGL_NONE - }; - - if (m_eglDisplay == EGL_NO_DISPLAY) - { - m_eglDisplay = eglGetDisplay((EGLNativeDisplayType)m_dpy); - if (m_eglDisplay == EGL_NO_DISPLAY) - { - CLog::Log(LOGERROR, "failed to get egl display\n"); - return NULL; - } - if (!eglInitialize(m_eglDisplay, NULL, NULL)) - { - CLog::Log(LOGERROR, "failed to initialize egl display\n"); - return NULL; - } - } - - EGLint numConfigs; - EGLConfig eglConfig = 0; - if (!eglChooseConfig(m_eglDisplay, att, &eglConfig, 1, &numConfigs) || numConfigs == 0) { - CLog::Log(LOGERROR, "Failed to choose a config %d\n", eglGetError()); - } - m_eglConfig=eglConfig; - - XVisualInfo x11_visual_info_template; - if (!eglGetConfigAttrib(m_eglDisplay, m_eglConfig, EGL_NATIVE_VISUAL_ID, (EGLint*)&x11_visual_info_template.visualid)) { - CLog::Log(LOGERROR, "Failed to query native visual id\n"); - } - int num_visuals; - return XGetVisualInfo(m_dpy, - VisualIDMask, - &x11_visual_info_template, - &num_visuals); -} diff --git a/xbmc/windowing/X11/GLContextEGL.h b/xbmc/windowing/X11/GLContextEGL.h index c0dbcfdb37..ae2ea88c67 100644 --- a/xbmc/windowing/X11/GLContextEGL.h +++ b/xbmc/windowing/X11/GLContextEGL.h @@ -35,7 +35,6 @@ public: void SetVSync(bool enable) override; void SwapBuffers() override; void QueryExtensions() override; - XVisualInfo* GetVisual(); EGLDisplay m_eglDisplay; EGLSurface m_eglSurface; EGLContext m_eglContext; |