diff options
author | wm4 <wm4@nowhere> | 2017-04-06 14:50:19 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-06 14:50:19 +0200 |
commit | c9d3a79187a9a45ecae8e97af9b68427d1f06eac (patch) | |
tree | 97e28437706cf42e7b31c3cc8521209f8bea40ab /video/out/opengl/context_wayland.c | |
parent | 4e6867c771a53767f9293517af8475e9d7845695 (diff) | |
download | mpv-c9d3a79187a9a45ecae8e97af9b68427d1f06eac.tar.bz2 mpv-c9d3a79187a9a45ecae8e97af9b68427d1f06eac.tar.xz |
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.
Diffstat (limited to 'video/out/opengl/context_wayland.c')
-rw-r--r-- | video/out/opengl/context_wayland.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/video/out/opengl/context_wayland.c b/video/out/opengl/context_wayland.c index 127ddcaa93..87e98cd64f 100644 --- a/video/out/opengl/context_wayland.c +++ b/video/out/opengl/context_wayland.c @@ -67,7 +67,6 @@ static int egl_create_context(struct vo_wayland_state *wl, MPGLContext *ctx, int flags) { GL *gl = ctx->gl; - const char *eglstr = ""; if (!(wl->egl_context.egl.dpy = eglGetDisplay(wl->display.display))) return -1; @@ -82,10 +81,7 @@ static int egl_create_context(struct vo_wayland_state *wl, MPGLContext *ctx, eglMakeCurrent(wl->egl_context.egl.dpy, NULL, NULL, wl->egl_context.egl.ctx); - eglstr = eglQueryString(wl->egl_context.egl.dpy, EGL_EXTENSIONS); - - mpgl_load_functions(gl, (void*(*)(const GLubyte*))eglGetProcAddress, eglstr, - wl->log); + mpegl_load_functions(gl, wl->log); ctx->native_display_type = "wl"; ctx->native_display = wl->display.display; |