From 7d5d8213dd5ecbaec7b9456ae19f04f6347468ab 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 7b7cd2cfb6..8d09a381f9 100644 --- a/lib/kwinglplatform.cpp +++ b/lib/kwinglplatform.cpp @@ -740,7 +740,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()));