From 8a14a0d61023071d20f8350e7f4706b5dbb64912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Mon, 11 Mar 2013 16:10:14 +0100 Subject: [PATCH] kwin: Move some debug output to where it belongs --- glxbackend.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/glxbackend.cpp b/glxbackend.cpp index 94b6033dae..7c1897a0e4 100644 --- a/glxbackend.cpp +++ b/glxbackend.cpp @@ -304,13 +304,6 @@ bool GlxBackend::initBufferConfigs() kError(1212) << "Couldn't find framebuffer configuration for buffer!"; return false; } - for (int i = 0; i <= 32; i++) { - if (fbcdrawableinfo[ i ].fbconfig == NULL) - continue; - int vis_drawable = 0; - glXGetFBConfigAttrib(display(), fbcdrawableinfo[ i ].fbconfig, GLX_VISUAL_ID, &vis_drawable); - kDebug(1212) << "Drawable visual (depth " << i << "): 0x" << QString::number(vis_drawable, 16); - } return true; } @@ -418,6 +411,17 @@ bool GlxBackend::initDrawableConfigs() kError(1212) << "Couldn't find framebuffer configuration for depth 32 (no ARGB GLX visual)!"; return false; } + + for (int i = 0; i <= 32; i++) { + if (fbcdrawableinfo[i].fbconfig == NULL) + continue; + + int vis_drawable = 0; + glXGetFBConfigAttrib(display(), fbcdrawableinfo[i].fbconfig, GLX_VISUAL_ID, &vis_drawable); + + kDebug(1212) << "Drawable visual (depth " << i << "): 0x" << QString::number(vis_drawable, 16); + } + return true; }