x11: Loosen the match for the NVIDIA driver

It seems nVidia puts a different string in the GL_VENDOR than the one it
uses for GLX.
This commit is contained in:
Emmanuele Bassi 2021-05-13 18:22:30 +01:00
parent 889bf83020
commit 3d8ba93f59

View File

@ -595,7 +595,7 @@ gdk_x11_screen_init_egl (GdkX11Screen *screen)
* fallback to GLX
*/
const char *vendor = eglQueryString (edpy, EGL_VENDOR);
if (g_strcmp0 (vendor, "NVIDIA Corporation") == 0)
if (strstr (vendor, "NVIDIA") != NULL)
return FALSE;
display_x11->have_egl = TRUE;