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>
Thu, 15 Feb 2018 10:23:44 +0000 (10:23 +0000)
commit786b6878063f5651a53d562154e21bd4fe91c98e
tree675a3eb1f1879e31f5573806dfa401d63fd2d8eb
parent1f05e031113e537268d9498311c6319003b9a178
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