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()
|
||||
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user