Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't make errors in version.opengl_vendor() fatal
Fixes #2694
  • Loading branch information
The-Compiler committed Jun 4, 2017
1 parent 71117f6 commit a858611
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions qutebrowser/utils/version.py
Expand Up @@ -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
Expand Down

0 comments on commit a858611

Please sign in to comment.