gdk/x11: Check if we have access to GL before using GLX API
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 20 Jan 2017 18:07:01 +0000 (18:07 +0000)
committerSimon McVittie <smcv@debian.org>
Thu, 22 Mar 2018 10:15:24 +0000 (10:15 +0000)
commit9e79ceeea387d207cb06f85d09fec8ef94925d5c
tree7cf356bf8c7fd5f4f103933c66ca129c3b17818d
parent1073cc0fdfae49ed42f18ce5b533c9eb0e5e49ba
gdk/x11: Check if we have access to GL before using GLX API

If the platform does not have access to libGL then any call to GL and
GLX API through libepoxy will fail with an assertion. Until such time
that libepoxy exposes API for us to use, we can simply dlopen libGL
ourselves and do a symbol check.

[smcv: fix typo]

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=775279
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847366
Applied-upstream: no, GTK+ 4 added a dependency on newer libepoxy instead

Gbp-Pq: Name gdk-x11-Check-if-we-have-access-to-GL-before-using-G.patch
gdk/x11/gdkglcontext-x11.c