fix encoding error in checkOpenGLVersion (#787)

This commit is contained in:
Paul Debus 2019-08-18 21:16:31 +02:00 committed by Ogi Moore
parent 80f8af2432
commit fd11e1352d

View File

@ -427,7 +427,7 @@ class GLViewWidget(QtOpenGL.QGLWidget):
def checkOpenGLVersion(self, msg):
## Only to be called from within exception handler.
ver = glGetString(GL_VERSION).split()[0]
if int(ver.split('.')[0]) < 2:
if int(ver.split(b'.')[0]) < 2:
from .. import debug
debug.printExc()
raise Exception(msg + " The original exception is printed above; however, pyqtgraph requires OpenGL version 2.0 or greater for many of its 3D features and your OpenGL version is %s. Installing updated display drivers may resolve this issue." % ver)