Add GL rendering profile to debug output

This commit is contained in:
David Vierra 2016-01-10 22:52:56 -10:00
parent ee078dd988
commit 346c945324

View File

@ -43,6 +43,7 @@ def validateWidgetQGLContext(widget):
detailedText += "Hardware Accelerated: %s\n" % (actualFormat.directRendering(), ) detailedText += "Hardware Accelerated: %s\n" % (actualFormat.directRendering(), )
detailedText += "Depth buffer: %s, %s\n" % (actualFormat.depth(), actualFormat.depthBufferSize()) detailedText += "Depth buffer: %s, %s\n" % (actualFormat.depth(), actualFormat.depthBufferSize())
detailedText += "Double buffer: %s\n" % (actualFormat.doubleBuffer(), ) detailedText += "Double buffer: %s\n" % (actualFormat.doubleBuffer(), )
detailedText += "Rendering profile: %s\n" % (actualFormat.profile(), )
detailedText += "\n" detailedText += "\n"
detailedText += "Driver info:\n" detailedText += "Driver info:\n"
detailedText += "GL_VERSION: %s (%s, %s)\n" % (version, major, minor) detailedText += "GL_VERSION: %s (%s, %s)\n" % (version, major, minor)