mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 05:48:07 +02:00
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:
parent
4477139ec2
commit
1d9215f904
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue