This commit is contained in:
Florian Bruhin 2017-05-31 09:44:17 +02:00
parent 28f7444d9e
commit 4cec9adce6

View File

@ -388,7 +388,8 @@ def opengl_vendor(): # pragma: no cover
""" """
# We're doing those imports here because this is only available with Qt 5.4 # We're doing those imports here because this is only available with Qt 5.4
# or newer. # or newer.
from PyQt5.QtGui import QOpenGLContext, QOpenGLVersionProfile, QOffscreenSurface from PyQt5.QtGui import (QOpenGLContext, QOpenGLVersionProfile,
QOffscreenSurface)
assert QApplication.instance() assert QApplication.instance()
assert QOpenGLContext.currentContext() is None assert QOpenGLContext.currentContext() is None