[gtk/wip/otte/gleanup: 25/59] Revert "x11: Always fall back to GLX on NVIDIA"
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/gleanup: 25/59] Revert "x11: Always fall back to GLX on NVIDIA"
- Date: Tue, 20 Jul 2021 03:21:17 +0000 (UTC)
commit 53ed9691caa93a4517a0dd2c5e3b2eb7b750d179
Author: Benjamin Otte <otte redhat com>
Date: Tue Jun 15 14:48:55 2021 +0200
Revert "x11: Always fall back to GLX on NVIDIA"
This reverts commit c35a6725b99722d91b0ed6580546c27c8f0849ba.
This approach doesn't work because if NVIDIA doesn't work for EGL, the
EGL implementation won't be provided by NVIDIA, so checking the vendor
doesn't work.
gdk/x11/gdkglcontext-egl.c | 13 -------------
1 file changed, 13 deletions(-)
---
diff --git a/gdk/x11/gdkglcontext-egl.c b/gdk/x11/gdkglcontext-egl.c
index 1156b0e633..61cabceb16 100644
--- a/gdk/x11/gdkglcontext-egl.c
+++ b/gdk/x11/gdkglcontext-egl.c
@@ -486,19 +486,6 @@ gdk_x11_display_init_egl (GdkX11Display *self,
return FALSE;
}
- /* While NVIDIA might support EGL, it might very well not support
- * all the EGL subset we rely on; we should be looking at more
- * EGL extensions, but for the time being, this is a blanket
- * fallback to GLX
- */
- const char *vendor = eglQueryString (self->egl_display, EGL_VENDOR);
- if (strstr (vendor, "NVIDIA") != NULL)
- {
- eglTerminate (self->egl_display);
- self->egl_display = NULL;
- return FALSE;
- }
-
self->egl_version = epoxy_egl_version (dpy);
self->has_egl_khr_create_context =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]