Add QUTE_SKIP_LIBGL_WORKAROUND

This commit is contained in:
Florian Bruhin 2019-02-24 13:49:33 +01:00
parent d283e2250f
commit 949da84581

View File

@ -178,6 +178,10 @@ def _nvidia_shader_workaround():
See https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/941826 See https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/941826
""" """
assert objects.backend == usertypes.Backend.QtWebEngine, objects.backend assert objects.backend == usertypes.Backend.QtWebEngine, objects.backend
if os.environ.get('QUTE_SKIP_LIBGL_WORKAROUND'):
return
libgl = ctypes.util.find_library("GL") libgl = ctypes.util.find_library("GL")
if libgl is not None: if libgl is not None:
ctypes.CDLL(libgl, mode=ctypes.RTLD_GLOBAL) ctypes.CDLL(libgl, mode=ctypes.RTLD_GLOBAL)