diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-09-16 12:16:59 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-09-16 12:59:19 (GMT) |
commit | 10013ad51f5403859a4996c07960febd5280e093 (patch) | |
tree | 56bbce97699552d4dcd4aca8c2e0f54ed8022482 /src/opengl | |
parent | a5336f46ea47afdb84874be391a6ce960a391e50 (diff) | |
download | Qt-10013ad51f5403859a4996c07960febd5280e093.zip Qt-10013ad51f5403859a4996c07960febd5280e093.tar.gz Qt-10013ad51f5403859a4996c07960febd5280e093.tar.bz2 |
Make QtOpenGL on X11/EGL less chatty with it's debug output
Reviewed-by: Trustme
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qgl_x11egl.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/opengl/qgl_x11egl.cpp b/src/opengl/qgl_x11egl.cpp index 7dfd642..32d8cc2 100644 --- a/src/opengl/qgl_x11egl.cpp +++ b/src/opengl/qgl_x11egl.cpp @@ -298,7 +298,7 @@ void QGLWidget::setContext(QGLContext *context, const QGLContext* shareContext, XRenderPictFormat *format; format = XRenderFindVisualFormat(x11Info().display(), chosenVisualInfo->visual); if (format->type == PictTypeDirect && format->direct.alphaMask) { - qDebug("Using opaque X Visual ID (%d) provided by EGL", (int)vi.visualid); +// qDebug("Using opaque X Visual ID (%d) provided by EGL", (int)vi.visualid); vi = *chosenVisualInfo; } else { @@ -309,7 +309,7 @@ void QGLWidget::setContext(QGLContext *context, const QGLContext* shareContext, } else #endif { - qDebug("Using opaque X Visual ID (%d) provided by EGL", (int)vi.visualid); +// qDebug("Using opaque X Visual ID (%d) provided by EGL", (int)vi.visualid); vi = *chosenVisualInfo; } XFree(chosenVisualInfo); @@ -342,7 +342,7 @@ void QGLWidget::setContext(QGLContext *context, const QGLContext* shareContext, format = XRenderFindVisualFormat(x11Info().display(), matchingVisuals[i].visual); if (format->type == PictTypeDirect && format->direct.alphaMask) { vi = matchingVisuals[i]; - qDebug("Using X Visual ID (%d) for ARGB visual as provided by XRender", (int)vi.visualid); +// qDebug("Using X Visual ID (%d) for ARGB visual as provided by XRender", (int)vi.visualid); break; } } @@ -365,8 +365,9 @@ void QGLWidget::setContext(QGLContext *context, const QGLContext* shareContext, return; } else qWarning(" - Falling back to X11 suggested depth (%d)", depth); - } else - qDebug("Using X Visual ID (%d) for EGL provided depth (%d)", (int)vi.visualid, depth); + } +// else +// qDebug("Using X Visual ID (%d) for EGL provided depth (%d)", (int)vi.visualid, depth); // Don't try to use ARGB now unless the visual is 32-bit - even then it might stil fail :-( if (useArgb) |