diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-01-19 17:03:17 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-01-28 01:03:12 +0000 |
commit | af537eff06fd54c0b265516203e30f678fa87d4e (patch) | |
tree | 283adae0483e88e738b7bc1f0001cf5b49a1251e /video/out | |
parent | 75e41478cc954e3a2c445d77593247ee71380b6f (diff) | |
download | mpv-af537eff06fd54c0b265516203e30f678fa87d4e.tar.bz2 mpv-af537eff06fd54c0b265516203e30f678fa87d4e.tar.xz |
vo_opengl/angle_dynamic: simplify symbol renaming to make it more straightforward
Diffstat (limited to 'video/out')
-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 |