Add a QUTE_FAKE_OPENGL_VENDOR envvar
This commit is contained in:
parent
a8e2a04648
commit
7d695d40b9
@ -433,6 +433,11 @@ def opengl_vendor(): # pragma: no cover
|
||||
"""
|
||||
assert QApplication.instance()
|
||||
|
||||
override = os.environ.get('QUTE_FAKE_OPENGL_VENDOR')
|
||||
if override is not None:
|
||||
log.init.debug("Using override {}".format(override))
|
||||
return override
|
||||
|
||||
old_context = QOpenGLContext.currentContext()
|
||||
old_surface = None if old_context is None else old_context.surface()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user