Fix printing of GLSL version in supportInformation

If GLSL was supported, but not limited the information did not get added
to the output.
This commit is contained in:
Martin Gräßlin 2013-05-22 09:18:05 +02:00
parent 561a4f437a
commit 1446fd6a38

View file

@ -1517,7 +1517,7 @@ QString Workspace::supportInformation() const
support.append("OpenGL renderer string: " % platform->glRendererString() % '\n');
support.append("OpenGL version string: " % platform->glVersionString() % '\n');
if (platform->supports(LimitedGLSL))
if (platform->supports(LimitedGLSL) || platform->supports(GLSL))
support.append("OpenGL shading language version string: " % platform->glShadingLanguageVersionString() % '\n');
support.append("Driver: " % GLPlatform::driverToString(platform->driver()) % '\n');
@ -1528,7 +1528,7 @@ QString Workspace::supportInformation() const
support.append("OpenGL version: " % GLPlatform::versionToString(platform->glVersion()) % '\n');
if (platform->supports(LimitedGLSL))
if (platform->supports(LimitedGLSL) || platform->supports(GLSL))
support.append("GLSL version: " % GLPlatform::versionToString(platform->glslVersion()) % '\n');
if (platform->isMesaDriver())