summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/angle_dynamic.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/angle_dynamic.c')
-rw-r--r--video/out/opengl/angle_dynamic.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/video/out/opengl/angle_dynamic.c b/video/out/opengl/angle_dynamic.c
index f4540c473a..1ff3cc8c6e 100644
--- a/video/out/opengl/angle_dynamic.c
+++ b/video/out/opengl/angle_dynamic.c
@@ -1,11 +1,21 @@
#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
+bool angle_load(void)
+{
+ return true;
+}
+#else
#define ANGLE_DECL(NAME, VAR) \
VAR;
ANGLE_FNS(ANGLE_DECL)
@@ -31,3 +41,4 @@ bool angle_load(void)
pthread_once(&angle_load_once, angle_do_load);
return angle_loaded;
}
+#endif