Remove unneeded log prefix
We see the function anyways
This commit is contained in:
parent
7d695d40b9
commit
3b6c4d4b85
@ -447,12 +447,12 @@ def opengl_vendor(): # pragma: no cover
|
|||||||
ctx = QOpenGLContext()
|
ctx = QOpenGLContext()
|
||||||
ok = ctx.create()
|
ok = ctx.create()
|
||||||
if not ok:
|
if not ok:
|
||||||
log.init.debug("opengl_vendor: Creating context failed!")
|
log.init.debug("Creating context failed!")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
ok = ctx.makeCurrent(surface)
|
ok = ctx.makeCurrent(surface)
|
||||||
if not ok:
|
if not ok:
|
||||||
log.init.debug("opengl_vendor: Making context current failed!")
|
log.init.debug("Making context current failed!")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -466,12 +466,11 @@ def opengl_vendor(): # pragma: no cover
|
|||||||
try:
|
try:
|
||||||
vf = ctx.versionFunctions(vp)
|
vf = ctx.versionFunctions(vp)
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
log.init.debug("opengl_vendor: Importing version functions "
|
log.init.debug("Importing version functions failed: {}".format(e))
|
||||||
"failed: {}".format(e))
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if vf is None:
|
if vf is None:
|
||||||
log.init.debug("opengl_vendor: Getting version functions failed!")
|
log.init.debug("Getting version functions failed!")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return vf.glGetString(vf.GL_VENDOR)
|
return vf.glGetString(vf.GL_VENDOR)
|
||||||
|
Loading…
Reference in New Issue
Block a user