mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
System : Display graphics card details in about dialog
This commit is contained in:
parent
ff12b617bb
commit
8f275757dc
@ -88,6 +88,32 @@ void RicHelpAboutFeature::onActionTriggered(bool isChecked)
|
||||
dlg.addVersionEntry(" ", QString(" ") + caf::AboutDialog::versionStringForcurrentOpenGLContext());
|
||||
dlg.addVersionEntry(" ", caf::Viewer::isShadersSupported() ? " Hardware OpenGL" : " Software OpenGL");
|
||||
|
||||
if (RiaApplication::enableDevelopmentFeatures())
|
||||
{
|
||||
QString vendor("Unknown");
|
||||
QString render("Unknown");
|
||||
|
||||
{
|
||||
char* str = (char*)glGetString(GL_VENDOR);
|
||||
|
||||
if (str)
|
||||
{
|
||||
vendor = str;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
char* str = (char*)glGetString(GL_RENDERER);
|
||||
|
||||
if (str)
|
||||
{
|
||||
render = str;
|
||||
}
|
||||
}
|
||||
|
||||
dlg.addVersionEntry(" ", QString(" ") + vendor + " : " + render);
|
||||
}
|
||||
|
||||
dlg.create();
|
||||
dlg.resize(300, 200);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user