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:
parent
eac284d880
commit
587861d899
@ -397,16 +397,16 @@ def opengl_vendor(): # pragma: no cover
|
|||||||
surface.create()
|
surface.create()
|
||||||
|
|
||||||
ctx = QOpenGLContext()
|
ctx = QOpenGLContext()
|
||||||
if ctx.isOpenGLES():
|
|
||||||
# Can't use versionFunctions there
|
|
||||||
return None
|
|
||||||
|
|
||||||
ok = ctx.create()
|
ok = ctx.create()
|
||||||
assert ok
|
assert ok
|
||||||
|
|
||||||
ok = ctx.makeCurrent(surface)
|
ok = ctx.makeCurrent(surface)
|
||||||
assert ok
|
assert ok
|
||||||
|
|
||||||
|
if ctx.isOpenGLES():
|
||||||
|
# Can't use versionFunctions there
|
||||||
|
return None
|
||||||
|
|
||||||
vp = QOpenGLVersionProfile()
|
vp = QOpenGLVersionProfile()
|
||||||
vp.setVersion(2, 0)
|
vp.setVersion(2, 0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user