[gtk/ebassi/issue-3948: 1/2] x11: Loosen the match for the NVIDIA driver




commit 3d8ba93f59e82378217e9e433b5b5b3814b784c8
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu May 13 18:22:30 2021 +0100

    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.

 gdk/x11/gdkglcontext-egl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/x11/gdkglcontext-egl.c b/gdk/x11/gdkglcontext-egl.c
index 91f3e8297c..cab476232f 100644
--- a/gdk/x11/gdkglcontext-egl.c
+++ b/gdk/x11/gdkglcontext-egl.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]