Don't print the GLSL version when GLSL isn't supported.

svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1213843
This commit is contained in:
Fredrik Höglund 2011-01-11 20:16:50 +00:00
parent f6a37f91ee
commit 1efeb2bf35

View file

@ -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()));