summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/egl_helpers.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-04-06 14:50:19 +0200
committerwm4 <wm4@nowhere>2017-04-06 14:50:19 +0200
commitc9d3a79187a9a45ecae8e97af9b68427d1f06eac (patch)
tree97e28437706cf42e7b31c3cc8521209f8bea40ab /video/out/opengl/egl_helpers.h
parent4e6867c771a53767f9293517af8475e9d7845695 (diff)
downloadmpv-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/egl_helpers.h')
-rw-r--r--video/out/opengl/egl_helpers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/opengl/egl_helpers.h b/video/out/opengl/egl_helpers.h
index ea751d4c5e..05f9dccb70 100644
--- a/video/out/opengl/egl_helpers.h
+++ b/video/out/opengl/egl_helpers.h
@@ -27,4 +27,7 @@ bool mpegl_create_context_opts(EGLDisplay display, struct mp_log *log,
struct mpegl_opts *opts,
EGLContext *out_context, EGLConfig *out_config);
+struct GL;
+void mpegl_load_functions(struct GL *gl, struct mp_log *log);
+
#endif