--- include/EGL/eglplatform.h 2026-07-31 12:32:24.966836182 +0000 +++ include/EGL/eglplatform.h 2026-07-31 12:32:24.971836309 +0000 @@ -127,7 +127,10 @@ #elif defined(__APPLE__) -typedef int EGLNativeDisplayType; +/* Mesa's native displays on macOS are pointers: struct wl_display * + * for the Wayland platform, Display * for X11 (XQuartz). Khronos' + * 32-bit int would truncate them on LP64, so type them properly. */ +typedef void *EGLNativeDisplayType; typedef void *EGLNativePixmapType; typedef void *EGLNativeWindowType;