Add some not-so-useless junk back into validateWidgetQGLContext
This commit is contained in:
parent
35419ca320
commit
301f178c26
@ -52,7 +52,8 @@ def validateWidgetQGLContext(widget):
|
|||||||
log.info("%s", detailedText)
|
log.info("%s", detailedText)
|
||||||
global _lastAcquiredContextInfo
|
global _lastAcquiredContextInfo
|
||||||
_lastAcquiredContextInfo = detailedText
|
_lastAcquiredContextInfo = detailedText
|
||||||
|
versionFlags = QtOpenGL.QGLFormat.openGLVersionFlags()
|
||||||
|
|
||||||
if (not context.isValid() or not actualFormat.directRendering()
|
if (not context.isValid() or not actualFormat.directRendering()
|
||||||
or not versionFlags & QtOpenGL.QGLFormat.OpenGL_Version_1_3
|
or not versionFlags & QtOpenGL.QGLFormat.OpenGL_Version_1_3
|
||||||
or (major, minor) < (1, 3)):
|
or (major, minor) < (1, 3)):
|
||||||
|
Reference in New Issue
Block a user