diff options
author | Florian Bruhin <git@the-compiler.org> | 2017-07-08 17:33:50 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2017-07-08 17:34:41 +0200 |
commit | e10ce420ab6f08fcd2dda4fb960f840623c7da89 (patch) | |
tree | 35a9b63d7be529fb7597aa93296265cef3a0d5fe | |
parent | 5b5adc1a004e790da4b7e2a13406aa92f304fc33 (diff) | |
download | qutebrowser-e10ce420ab6f08fcd2dda4fb960f840623c7da89.tar.gz qutebrowser-e10ce420ab6f08fcd2dda4fb960f840623c7da89.zip |
Improve earlyinit check for PyOpenGL
Importing OpenGL alone doesn't actually load libgl, it only checks that the
package is here. If libgl is missing, we'd later get an exception.
(cherry picked from commit b81474d2fd3851c4e08bb5e2a45f8ca9ca27e44f)
-rw-r--r-- | qutebrowser/misc/earlyinit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/misc/earlyinit.py b/qutebrowser/misc/earlyinit.py index 4993d6927..f5145e015 100644 --- a/qutebrowser/misc/earlyinit.py +++ b/qutebrowser/misc/earlyinit.py @@ -342,7 +342,7 @@ def check_libraries(backend): modules['PyQt5.QtWebEngineWidgets'] = _missing_str("QtWebEngine", webengine=True) modules['PyQt5.QtOpenGL'] = _missing_str("PyQt5.QtOpenGL") - modules['OpenGL'] = _missing_str("PyOpenGL") + modules['OpenGL.GL'] = _missing_str("PyOpenGL") else: assert backend == 'webkit' modules['PyQt5.QtWebKit'] = _missing_str("PyQt5.QtWebKit") |