From c9d3a79187a9a45ecae8e97af9b68427d1f06eac Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 6 Apr 2017 14:50:19 +0200 Subject: vo_opengl: add a generic EGL function loader function This is pretty trivial, but also quite annoying due to details like mismatching eglGetProcAddress() function signature (most callers just cast the function pointer), and ARM/Linux hacks. So move them all to one place. --- video/out/opengl/context_x11egl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'video/out/opengl/context_x11egl.c') diff --git a/video/out/opengl/context_x11egl.c b/video/out/opengl/context_x11egl.c index 2cf249fe1a..2b68007a33 100644 --- a/video/out/opengl/context_x11egl.c +++ b/video/out/opengl/context_x11egl.c @@ -131,10 +131,7 @@ static int mpegl_init(struct MPGLContext *ctx, int flags) goto uninit; } - const char *egl_exts = eglQueryString(p->egl_display, EGL_EXTENSIONS); - - void *(*gpa)(const GLubyte*) = (void *(*)(const GLubyte*))eglGetProcAddress; - mpgl_load_functions(ctx->gl, gpa, egl_exts, vo->log); + mpegl_load_functions(ctx->gl, vo->log); ctx->native_display_type = "x11"; ctx->native_display = vo->x11->display; -- cgit v1.2.3