File: fix_macos.patch

package info (click to toggle)
0ad 0.27.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 171,928 kB
  • sloc: cpp: 194,011; javascript: 19,098; ansic: 15,066; python: 6,328; sh: 1,695; perl: 1,575; java: 533; xml: 415; php: 192; makefile: 99
file content (17 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git b/include/glad/gl.h a/include/glad/gl.h
index 0a8db581a6..4c7c3564c3 100644
--- b/include/glad/gl.h
+++ a/include/glad/gl.h
@@ -1763,7 +1763,11 @@ typedef void *GLeglImageOES;
 typedef char GLchar;
 typedef char GLcharARB;
 #ifdef __APPLE__
-typedef void *GLhandleARB;
+// --- Patched by WFG
+// See https://bugs.freedesktop.org/show_bug.cgi?id=66346
+// macOS considers those to be different.
+// typedef void *GLhandleARB;
+typedef GLuint GLhandleARB;
 #else
 typedef unsigned int GLhandleARB;
 #endif