diff options
author | wm4 <wm4@nowhere> | 2015-09-27 16:10:22 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-27 16:18:06 +0200 |
commit | 2e5df94f0f479a477e436c019a72c03498141159 (patch) | |
tree | 520ee75e32912141b025c859e23c23212160476d /video/out/opengl/common.c | |
parent | 0c494c238a33c6f003f5fb31e2bb5f5399e3c141 (diff) | |
download | mpv-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.c | 17 |
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", |