From 1d9215f90440e5c677f68d68d806c1912d7071c1 Mon Sep 17 00:00:00 2001 From: "duncan.hopkins" Date: Wed, 1 Nov 2023 08:29:19 +0000 Subject: [PATCH] egl: Changed EGLNativeDisplayType size check to make sure it is big enough instead of exactly the same size. MacOS uses a smaller EGLNativeDisplayType than 'void*', which is big enough for the storage. Acked-By: Mike Blumenkrantz Part-of: --- src/egl/main/eglapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 5620436a1af..e95735d557c 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -415,7 +415,7 @@ eglGetDisplay(EGLNativeDisplayType nativeDisplay) util_cpu_trace_init(); _EGL_FUNC_START(NULL, EGL_OBJECT_THREAD_KHR, NULL); - STATIC_ASSERT(sizeof(void *) == sizeof(nativeDisplay)); + STATIC_ASSERT(sizeof(void *) >= sizeof(nativeDisplay)); native_display_ptr = (void *)nativeDisplay; plat = _eglGetNativePlatform(native_display_ptr);