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 <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28130>
This commit is contained in:
duncan.hopkins 2023-11-01 08:29:19 +00:00 committed by Marge Bot
parent 4477139ec2
commit 1d9215f904

View file

@ -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);