mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 01:18:06 +02:00
egl: Fix -Wint-to-pointer-cast
main/egldisplay.c: In function '_eglParseX11DisplayAttribList':
main/egldisplay.c:491:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
display->Options.Platform = (void *)value;
The fix: cast to uinptr_t before void*.
^
Fixes: ddb99127 egl/x11: Honor the EGL_PLATFORM_X11_SCREEN_EXT attribute
Cc: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
b84979d6c7
commit
0160fb1d50
1 changed files with 1 additions and 1 deletions
|
|
@ -488,7 +488,7 @@ _eglParseX11DisplayAttribList(_EGLDisplay *display, const EGLint *attrib_list)
|
|||
* EGL_PLATFORM_X11_SCREEN_EXT, which is optional.
|
||||
*/
|
||||
if (attrib == EGL_PLATFORM_X11_SCREEN_EXT) {
|
||||
display->Options.Platform = (void *)value;
|
||||
display->Options.Platform = (void *)(uintptr_t)value;
|
||||
} else {
|
||||
_eglError(EGL_BAD_ATTRIBUTE, "eglGetPlatformDisplay");
|
||||
return EGL_FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue