From d15c3bad99bb30d9efc2f159d8e37d197f3d16d6 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Sat, 14 May 2022 17:41:01 +0800 Subject: [PATCH] properly cast types for libglvnd 1.3.4 Origin: https://src.fedoraproject.org/rpms/qt5-qtbase/blob/rawhide/f/qtbase-everywhere-src-5.15.2-libglvnd.patch Gbp-Pq: Name cast_types_for_egl_x11_test.diff --- src/gui/configure.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/configure.json b/src/gui/configure.json index 1f08795c..f159568f 100644 --- a/src/gui/configure.json +++ b/src/gui/configure.json @@ -838,9 +838,9 @@ ], "include": [ "EGL/egl.h", "X11/Xlib.h" ], "main": [ - "Display *dpy = EGL_DEFAULT_DISPLAY;", + "Display *dpy = reinterpret_cast(EGL_DEFAULT_DISPLAY);", "EGLNativeDisplayType egldpy = XOpenDisplay(\"\");", - "dpy = egldpy;", + "dpy = reinterpret_cast(egldpy);", "EGLNativeWindowType w = XCreateWindow(dpy, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);", "XDestroyWindow(dpy, w);", "XCloseDisplay(dpy);"