Permalink
Browse files

Don't make errors in version.opengl_vendor() fatal

Fixes #2694
  • Loading branch information...
The-Compiler committed Jun 4, 2017
1 parent 71117f6 commit a858611bb9ac392b0a08f616b4c1a4feda7c3af4
Showing with 6 additions and 2 deletions.
  1. +6 −2 qutebrowser/utils/version.py
@@ -398,10 +398,14 @@ def opengl_vendor(): # pragma: no cover
ctx = QOpenGLContext()
ok = ctx.create()
assert ok
if not ok:
log.init.debug("opengl_vendor: Creating context failed!")
return None
ok = ctx.makeCurrent(surface)
assert ok
if not ok:
log.init.debug("opengl_vendor: Making context current failed!")
return None
if ctx.isOpenGLES():
# Can't use versionFunctions there

0 comments on commit a858611

Please sign in to comment.