From db26f345301fb0559afecd4e1aa38655f1c6e1c3 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Thu, 19 Mar 2026 15:46:14 +0000 Subject: [PATCH] glx/windows: Fix compliation after code motion to put event base in 'dri' context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > ../src/glx/driwindows_glx.c: In function ‘driwindowsCreateScreen’: > ../src/glx/driwindows_glx.c:479:48: error: ‘dpy’ undeclared (first use in this function) 08e2985e5743 moved this code from driwindowsCreateDisplay to driwindowsCreateScreen. Unfortunately, dpy is no longer a parameter, so we need to look it up in glx_display struct. (Looking it up in psc->base before it's initialized here initialized would be incorrect). Fixes: 08e2985e5743 ("glx: move driwindows_display::event_base to driwindows_context") Signed-off-by: Jon Turney Part-of: --- src/glx/driwindows_glx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glx/driwindows_glx.c b/src/glx/driwindows_glx.c index 5264f0b38d2..ea9146f7fb2 100644 --- a/src/glx/driwindows_glx.c +++ b/src/glx/driwindows_glx.c @@ -452,12 +452,12 @@ driwindowsCreateScreen(int screen, struct glx_display *priv, bool driver_name_is int major, minor, patch; /* Verify server has Windows-DRI extension */ - if (!XWindowsDRIQueryExtension(dpy, &eventBase, &errorBase)) { + if (!XWindowsDRIQueryExtension(priv->dpy, &eventBase, &errorBase)) { ErrorMessageF("Windows-DRI extension not available\n"); return NULL; } - if (!XWindowsDRIQueryVersion(dpy, &major, &minor, &patch)) { + if (!XWindowsDRIQueryVersion(priv->dpy, &major, &minor, &patch)) { ErrorMessageF("Fetching Windows-DRI extension version failed\n"); return NULL; }