Check for OpenGL ES later

It looks like we still got False on AppVeyor with "versionFunctions: Not
supported on OpenGL ES". Hopefully this helps.
This commit is contained in:
Florian Bruhin 2017-05-31 11:44:34 +02:00
parent eac284d880
commit 587861d899

View File

@ -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)