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)
committerAndreas Henriksson <andreas@fatal.se>
Thu, 13 Apr 2017 04:41:09 +0000 (05:41 +0100)
commit8f13e6708e9a3e6cf540772b1bef5f77be8be045
tree11dc63479e4db9ff8e67dc122c99ee154e4b8efb
parent04daf8f29e26c0fa66f8839196d656a5d081fc70
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

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