Add used OpenGLPlatformInterface to supportInformation
Useful information when the platform interface becomes runtime switchable.
This commit is contained in:
parent
b09dd0d7f1
commit
83ad1386dc
1 changed files with 12 additions and 0 deletions
|
@ -1417,6 +1417,18 @@ QString Workspace::supportInformation() const
|
|||
support.append(QStringLiteral("OpenGL vendor string: ") + QString::fromUtf8(platform->glVendorString()) + QStringLiteral("\n"));
|
||||
support.append(QStringLiteral("OpenGL renderer string: ") + QString::fromUtf8(platform->glRendererString()) + QStringLiteral("\n"));
|
||||
support.append(QStringLiteral("OpenGL version string: ") + QString::fromUtf8(platform->glVersionString()) + QStringLiteral("\n"));
|
||||
support.append(QStringLiteral("OpenGL platform interface: "));
|
||||
switch (platform->platformInterface()) {
|
||||
case GlxPlatformInterface:
|
||||
support.append(QStringLiteral("GLX"));
|
||||
break;
|
||||
case EglPlatformInterface:
|
||||
support.append(QStringLiteral("EGL"));
|
||||
break;
|
||||
default:
|
||||
support.append(QStringLiteral("UNKNOWN"));
|
||||
}
|
||||
support.append(QStringLiteral("\n"));
|
||||
|
||||
if (platform->supports(LimitedGLSL) || platform->supports(GLSL))
|
||||
support.append(QStringLiteral("OpenGL shading language version string: ") + QString::fromUtf8(platform->glShadingLanguageVersionString()) + QStringLiteral("\n"));
|
||||
|
|
Loading…
Reference in a new issue