From 1efeb2bf35b9747508e09a35ff5523c9d132ac45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Tue, 11 Jan 2011 20:16:50 +0000 Subject: [PATCH] Don't print the GLSL version when GLSL isn't supported. svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1213843 --- lib/kwinglplatform.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/kwinglplatform.cpp b/lib/kwinglplatform.cpp index 94b29f5de0..d3ff5a0043 100644 --- a/lib/kwinglplatform.cpp +++ b/lib/kwinglplatform.cpp @@ -734,7 +734,9 @@ void GLPlatform::printResults() const print("GPU class:", chipClassToString(m_chipClass)); print("OpenGL version:", versionToString(m_glVersion)); - print("GLSL version:", versionToString(m_glslVersion)); + + if (m_supportsGLSL) + print("GLSL version:", versionToString(m_glslVersion)); if (isMesaDriver()) print("Mesa version:", versionToString(mesaVersion()));