Commit 86fc385ca0 for qemu.org

commit 86fc385ca082b21683b42c7c7c5cd709ce903130
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date:   Thu Aug 20 17:19:33 2026 +0400

    ui/egl: fix qemu_egl_display type

    EGLDisplay is already a pointer type (void *), so declaring
    qemu_egl_display as EGLDisplay * makes it void **, which
    doesn't match any of its usages.

    Fixes: 7ced9e9f6da2 ("ui: add egl-helpers")
    Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Message-ID: <20260820131933.2729240-1-marcandre.lureau@redhat.com>

diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h
index 405ddd9125..679c79eacd 100644
--- a/include/ui/egl-helpers.h
+++ b/include/ui/egl-helpers.h
@@ -9,7 +9,7 @@
 #include "ui/console.h"
 #include "ui/shader.h"

-extern EGLDisplay *qemu_egl_display;
+extern EGLDisplay qemu_egl_display;
 extern EGLConfig qemu_egl_config;
 extern DisplayGLMode qemu_egl_mode;
 extern bool qemu_egl_angle_d3d;
diff --git a/ui/egl-helpers.c b/ui/egl-helpers.c
index e89cc7c49a..8e3729a54d 100644
--- a/ui/egl-helpers.c
+++ b/ui/egl-helpers.c
@@ -25,7 +25,7 @@
 #include "trace.h"
 #include "standard-headers/drm/drm_fourcc.h"

-EGLDisplay *qemu_egl_display;
+EGLDisplay qemu_egl_display;
 EGLConfig qemu_egl_config;
 DisplayGLMode qemu_egl_mode;
 bool qemu_egl_angle_d3d;