xcb: Get rid of qCInfo in the GLX backend
qCInfo must never be used. For qt.* logging categories Debug is disabled
while everything else is enabled by default. This means that doing qCInfo
is equivalent to putting a qDebug which is not acceptable.
Amends 3e0355014e
Change-Id: I428e620f12afa324cf6af8dbe3912a55189a38a9
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
bb10
parent
229fd2cece
commit
22d43c9e51
|
|
@ -693,7 +693,7 @@ void QGLXContext::queryDummyContext()
|
|||
if (const char *renderer = (const char *) glGetString(GL_RENDERER)) {
|
||||
for (int i = 0; qglx_threadedgl_blacklist_renderer[i]; ++i) {
|
||||
if (strstr(renderer, qglx_threadedgl_blacklist_renderer[i]) != 0) {
|
||||
qCInfo(lcQpaGl).nospace() << "Multithreaded OpenGL disabled: "
|
||||
qCDebug(lcQpaGl).nospace() << "Multithreaded OpenGL disabled: "
|
||||
"blacklisted renderer \""
|
||||
<< qglx_threadedgl_blacklist_renderer[i]
|
||||
<< "\"";
|
||||
|
|
@ -706,7 +706,7 @@ void QGLXContext::queryDummyContext()
|
|||
if (glxvendor) {
|
||||
for (int i = 0; qglx_threadedgl_blacklist_vendor[i]; ++i) {
|
||||
if (strstr(glxvendor, qglx_threadedgl_blacklist_vendor[i]) != 0) {
|
||||
qCInfo(lcQpaGl).nospace() << "Multithreaded OpenGL disabled: "
|
||||
qCDebug(lcQpaGl).nospace() << "Multithreaded OpenGL disabled: "
|
||||
"blacklisted vendor \""
|
||||
<< qglx_threadedgl_blacklist_vendor[i]
|
||||
<< "\"";
|
||||
|
|
@ -722,7 +722,7 @@ void QGLXContext::queryDummyContext()
|
|||
oldContext->makeCurrent(oldSurface);
|
||||
|
||||
if (!m_supportsThreading) {
|
||||
qCInfo(lcQpaGl) << "Force-enable multithreaded OpenGL by setting "
|
||||
qCDebug(lcQpaGl) << "Force-enable multithreaded OpenGL by setting "
|
||||
"environment variable QT_OPENGL_NO_SANITY_CHECK";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue