diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-03-04 18:59:12 +0100 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-03-04 18:59:12 +0100 |
commit | 7bab84050f168685b42fcee494f07f5ae4cf4d78 (patch) | |
tree | 763fa7c3426edf35fe1aa7e59fa16d003678bf10 | |
parent | 7686cd7f043ef5b42ade64db21ec01c8c8d6281e (diff) |
wayland: remove unnecessary function pointers
Remove the usage of getdladdr as it only adds to code complexity
-rw-r--r-- | video/out/gl_common.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/video/out/gl_common.c b/video/out/gl_common.c index 89ed0cbbd3..1eda2eaf30 100644 --- a/video/out/gl_common.c +++ b/video/out/gl_common.c @@ -1380,9 +1380,6 @@ static bool egl_create_context(struct vo_wayland_state *wl, EGLBoolean ret; GL *gl = ctx->gl; - - void *(*getProcAddress)(const GLubyte *); - const char *(*eglExtStr)(EGLDisplay *, int); const char *eglstr = ""; egl_ctx->egl.dpy = eglGetDisplay(wl->display->display); @@ -1436,13 +1433,7 @@ static bool egl_create_context(struct vo_wayland_state *wl, assert(ret == EGL_TRUE); - getProcAddress = getdladdr("eglGetProcAddress"); - if (!getProcAddress) - mp_msg(MSGT_VO, MSGL_WARN, "[egl] No eglGetProcAdress"); - - eglExtStr = getdladdr("eglQueryString"); - if (eglExtStr) - eglstr = eglExtStr(egl_ctx->egl.dpy, EGL_EXTENSIONS); + eglstr = eglQueryString(egl_ctx->egl.dpy, EGL_EXTENSIONS); getFunctions(gl, (void*(*)(const GLubyte*))eglGetProcAddress, eglstr); if (!gl->BindProgram) |