diff --git a/qutebrowser/utils/version.py b/qutebrowser/utils/version.py index 563642d64..879f29432 100644 --- a/qutebrowser/utils/version.py +++ b/qutebrowser/utils/version.py @@ -397,16 +397,16 @@ def opengl_vendor(): # pragma: no cover surface.create() ctx = QOpenGLContext() - if ctx.isOpenGLES(): - # Can't use versionFunctions there - return None - ok = ctx.create() assert ok ok = ctx.makeCurrent(surface) assert ok + if ctx.isOpenGLES(): + # Can't use versionFunctions there + return None + vp = QOpenGLVersionProfile() vp.setVersion(2, 0)