mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Show GLSL version on about dialog.
This commit is contained in:
parent
68f227009d
commit
c1cdbc8d4a
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ lcQAboutDialog::lcQAboutDialog(QWidget *parent, void *data) :
|
|||
glGetBooleanv(GL_DOUBLEBUFFER, &DoubleBuffer);
|
||||
glGetBooleanv(GL_RGBA_MODE, &RGBA);
|
||||
|
||||
QString VersionFormat = tr("OpenGL Version %1\n%2 - %3\n\n");
|
||||
QString Version = VersionFormat.arg(QString((const char*)glGetString(GL_VERSION)), QString((const char*)glGetString(GL_RENDERER)), QString((const char*)glGetString(GL_VENDOR)));
|
||||
QString VersionFormat = tr("OpenGL Version %1 (GLSL %2)\n%3 - %4\n\n");
|
||||
QString Version = VersionFormat.arg(QString((const char*)glGetString(GL_VERSION)), QString((const char*)glGetString(GL_SHADING_LANGUAGE_VERSION)), QString((const char*)glGetString(GL_RENDERER)), QString((const char*)glGetString(GL_VENDOR)));
|
||||
QString BuffersFormat = tr("Color Buffer: %1 bits %2 %3\nDepth Buffer: %4 bits\nStencil Buffer: %5 bits\n\n");
|
||||
QString Buffers = BuffersFormat.arg(QString::number(Red + Green + Blue + Alpha), RGBA ? "RGBA" : tr("indexed"), DoubleBuffer ? tr("double buffered") : QString(), QString::number(Depth), QString::number(Stencil));
|
||||
|
||||
|
|
Loading…
Reference in a new issue