glx: Fix segfault when Nvidia PRIME render offload is enabled, but not used
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Fixes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11719

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37342>
This commit is contained in:
stefan11111 2025-09-12 22:54:30 +03:00
parent 19dc279d43
commit 8e000cecac

View file

@ -123,6 +123,10 @@ glxSendClientInfo(struct glx_display *glx_dpy, int screen)
for (i = 0; i < ScreenCount(glx_dpy->dpy); i++) {
struct glx_screen *src = glx_dpy->screens[i];
if (src == NULL) {
continue;
}
const char *haystack = src->serverGLXexts;
while (haystack != NULL) {
char *match = strstr(haystack, "GLX_ARB_create_context");