From 7bab84050f168685b42fcee494f07f5ae4cf4d78 Mon Sep 17 00:00:00 2001 From: Alexander Preisinger Date: Mon, 4 Mar 2013 18:59:12 +0100 Subject: wayland: remove unnecessary function pointers Remove the usage of getdladdr as it only adds to code complexity --- video/out/gl_common.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'video') 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) -- cgit v1.2.3