@@ -7011,3 +7011,46 @@ index 9f6e6279d9..b6cda6e00b 100644
70117011- -
701270122.41.0
70137013
7014+ From c03d7e35473b57544523ba19975023332567a63d Mon Sep 17 00:00:00 2001
7015+ 7016+ Date: Sat, 30 Mar 2024 20:15:01 -0700
7017+ Subject: [PATCH] egl-helpers: incorrect type for native_display
7018+
7019+ ---
7020+ ui/egl-helpers.c | 6 +++---
7021+ 1 file changed, 3 insertions(+), 3 deletions(-)
7022+
7023+ diff --git a/ui/egl-helpers.c b/ui/egl-helpers.c
7024+ index 0df9dd8fd5..0e9a3e469d 100644
7025+ --- a/ui/egl-helpers.c
7026+ +++ b/ui/egl-helpers.c
7027+ @@ -505,7 +505,7 @@ static int qemu_egl_init_dpy_platform(EGLNativeDisplayType native,
7028+ PFNEGLGETPLATFORMDISPLAYEXTPROC getPlatformDisplayEXT =
7029+ (void *) eglGetProcAddress("eglGetPlatformDisplayEXT");
7030+ if (getPlatformDisplayEXT && platform != 0) {
7031+ - dpy = getPlatformDisplayEXT(platform, native, NULL);
7032+ + dpy = getPlatformDisplayEXT(platform, (void *)native, NULL);
7033+ }
7034+ }
7035+
7036+ @@ -526,7 +526,7 @@ static int qemu_egl_init_dpy_platform(EGLNativeDisplayType native,
7037+
7038+ int qemu_egl_init_dpy_surfaceless(DisplayGLMode mode)
7039+ {
7040+ - return qemu_egl_init_dpy_platform(NULL, EGL_PLATFORM_SURFACELESS_MESA, mode);
7041+ + return qemu_egl_init_dpy_platform(EGL_DEFAULT_DISPLAY, EGL_PLATFORM_SURFACELESS_MESA, mode);
7042+ }
7043+
7044+ #if defined(CONFIG_X11) || defined(CONFIG_GBM)
7045+ @@ -555,7 +555,7 @@ int qemu_egl_init_dpy_mesa(EGLNativeDisplayType dpy, DisplayGLMode mode)
7046+
7047+ int qemu_egl_init_dpy_angle(DisplayGLMode mode)
7048+ {
7049+ - return qemu_egl_init_dpy_platform(NULL, EGL_PLATFORM_ANGLE_ANGLE, mode);
7050+ + return qemu_egl_init_dpy_platform(EGL_DEFAULT_DISPLAY, EGL_PLATFORM_ANGLE_ANGLE, mode);
7051+ }
7052+
7053+ #endif
7054+ - -
7055+ 2.41.0
7056+
0 commit comments