GTK+: Use glXQueryExtension, not epoxy_has_glx.

This commit is contained in:
Brandon Wright 2018-11-06 11:39:17 -06:00
parent d3b42751b9
commit de4699bd24
1 changed files with 4 additions and 2 deletions

View File

@ -658,9 +658,11 @@ int S9xOpenGLDisplayDriver::query_availability ()
{ {
Display *dpy = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()); Display *dpy = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
if (epoxy_has_glx (dpy)) if (glXQueryExtension (dpy, NULL, NULL) == True)
{
return 1; return 1;
} }
}
#endif #endif
if (gui_config->hw_accel == HWA_OPENGL) if (gui_config->hw_accel == HWA_OPENGL)