summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-27 16:10:22 +0200
committerwm4 <wm4@nowhere>2015-09-27 16:18:06 +0200
commit2e5df94f0f479a477e436c019a72c03498141159 (patch)
tree520ee75e32912141b025c859e23c23212160476d /video/out/opengl/common.c
parent0c494c238a33c6f003f5fb31e2bb5f5399e3c141 (diff)
downloadmpv-2e5df94f0f479a477e436c019a72c03498141159.tar.bz2
mpv-2e5df94f0f479a477e436c019a72c03498141159.tar.xz
vo_opengl: vaapi: redo how EGL extensions are loaded
It looks like my hope that we can unconditionally include EGL headers in the OpenGL code is not coming true, because OSX does not support EGL at all. So I prefer loading the VAAPI EGL/GL specific extensions manually, because it's less of a mess. Partially reverts commit d47dff3f.
Diffstat (limited to 'video/out/opengl/common.c')
-rw-r--r--video/out/opengl/common.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c
index 43d9375155..640a357b12 100644
--- a/video/out/opengl/common.c
+++ b/video/out/opengl/common.c
@@ -72,7 +72,6 @@ static bool check_ext(GL *gl, const char *name)
#define FN_OFFS(name) offsetof(GL, name)
#define DEF_FN(name) {FN_OFFS(name), "gl" # name}
-#define DEF_FN_EGL(name) {FN_OFFS(name), "egl" # name}
#define DEF_FN_NAME(name, str) {FN_OFFS(name), str}
struct gl_function {
@@ -279,22 +278,6 @@ static const struct gl_functions gl_functions[] = {
.extension = "GL_APPLE_rgb_422",
.provides = MPGL_CAP_APPLE_RGB_422,
},
- // EGL extensions for vaapi EGL interop
- {
- .extension = "EGL_KHR_image_base",
- .functions = (const struct gl_function[]) {
- DEF_FN_EGL(CreateImageKHR),
- DEF_FN_EGL(DestroyImageKHR),
- {0}
- },
- },
- {
- .extension = "GL_OES_EGL_image",
- .functions = (const struct gl_function[]) {
- DEF_FN(EGLImageTargetTexture2DOES),
- {0}
- },
- },
{
.ver_core = 430,
.extension = "GL_ARB_debug_output",