Skip to content

GLX: Return dummy strings for glXGetClientString(NULL, ...)

Created by: aaronp24

KDE calls glXGetClientString with a NULL dpy argument, which crashes in the call to XScreenCount(dpy). Work around it by explicitly checking for this and returning some static strings.

Note that one oddity is that querying the GLX_VERSION with a NULL dpy will return the maximum version supported by libglvnd, but specifying a display will return the maximum supported by any vendor on the display (up to libglvnd's supported maximum).

Signed-off-by: Aaron Plattner aplattner@nvidia.com

Merge request reports