diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/angle_dynamic.c | 9 | ||||
-rw-r--r-- | video/out/opengl/angle_dynamic.h | 4 |
2 files changed, 5 insertions, 8 deletions
diff --git a/video/out/opengl/angle_dynamic.c b/video/out/opengl/angle_dynamic.c index 1ff3cc8c6e..cc71f6ba8f 100644 --- a/video/out/opengl/angle_dynamic.c +++ b/video/out/opengl/angle_dynamic.c @@ -1,13 +1,8 @@ #include <pthread.h> #include <windows.h> -#ifndef ANGLE_NO_ALIASES -#define ANGLE_NO_ALIASES -#endif - #include "angle_dynamic.h" -#include "config.h" #include "common/common.h" #if HAVE_EGL_ANGLE_LIB @@ -30,8 +25,8 @@ static void angle_do_load(void) if (!angle_dll) return; #define ANGLE_LOAD_ENTRY(NAME, VAR) \ - MP_CONCAT(PFN_, NAME) = (void *)GetProcAddress(angle_dll, #NAME); \ - if (!MP_CONCAT(PFN_, NAME)) return; + NAME = (void *)GetProcAddress(angle_dll, #NAME); \ + if (!NAME) return; ANGLE_FNS(ANGLE_LOAD_ENTRY) angle_loaded = true; } diff --git a/video/out/opengl/angle_dynamic.h b/video/out/opengl/angle_dynamic.h index 12a0c692eb..d419c3fc91 100644 --- a/video/out/opengl/angle_dynamic.h +++ b/video/out/opengl/angle_dynamic.h @@ -8,6 +8,8 @@ #include <EGL/egl.h> #include <EGL/eglext.h> +#include "config.h" + #define ANGLE_FNS(FN) \ FN(eglBindAPI, EGLBoolean (*EGLAPIENTRY PFN_eglBindAPI)(EGLenum)) \ FN(eglBindTexImage, EGLBoolean (*EGLAPIENTRY PFN_eglBindTexImage) \ @@ -59,7 +61,7 @@ ANGLE_FNS(ANGLE_EXT_DECL) bool angle_load(void); // Source compatibility to statically linked ANGLE. -#ifndef ANGLE_NO_ALIASES +#if !HAVE_EGL_ANGLE_LIB #define eglBindAPI PFN_eglBindAPI #define eglBindTexImage PFN_eglBindTexImage #define eglChooseConfig PFN_eglChooseConfig |