From 2e5df94f0f479a477e436c019a72c03498141159 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 27 Sep 2015 16:10:22 +0200 Subject: 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. --- video/out/opengl/common.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'video/out/opengl/common.c') 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", -- cgit v1.2.3