From de4699bd240b13ab6d7043828af48fc3edb79dda Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Tue, 6 Nov 2018 11:39:17 -0600 Subject: [PATCH] GTK+: Use glXQueryExtension, not epoxy_has_glx. --- gtk/src/gtk_display_driver_opengl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk/src/gtk_display_driver_opengl.cpp b/gtk/src/gtk_display_driver_opengl.cpp index aeb68ebd..8b825d1f 100644 --- a/gtk/src/gtk_display_driver_opengl.cpp +++ b/gtk/src/gtk_display_driver_opengl.cpp @@ -658,8 +658,10 @@ int S9xOpenGLDisplayDriver::query_availability () { Display *dpy = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()); - if (epoxy_has_glx (dpy)) - return 1; + if (glXQueryExtension (dpy, NULL, NULL) == True) + { + return 1; + } } #endif