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)
committerJeremy Bicha <jbicha@debian.org>
Wed, 4 Oct 2017 23:07:15 +0000 (00:07 +0100)
commita755a94d159e494df5b3f143933f76c4571c3b27
tree3b554b1342a75cc5f79e97891901dbddb22cf570
parentc5df4b7f3b9fe512d571f48d1b69558b7bb208be
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