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

Fixes #2694
This commit is contained in:
Florian Bruhin 2017-06-04 22:55:39 +02:00
parent 71117f6dea
commit a858611bb9

View File

@ -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