diff --git a/src/Gui/GcCrashDialog.cpp b/src/Gui/GcCrashDialog.cpp index c94340ad3..7206e1df3 100644 --- a/src/Gui/GcCrashDialog.cpp +++ b/src/Gui/GcCrashDialog.cpp @@ -257,7 +257,9 @@ QString GcCrashDialog::versionHTML() "
DB Schema: %5" "
Metrics: %7" "
OS: %6" +#ifdef Q_OS_LINUX "
OpenGL: %8" +#endif "
") .arg(__DATE__) .arg(__TIME__) @@ -270,7 +272,10 @@ QString GcCrashDialog::versionHTML() .arg(schemaVersion) .arg(os) .arg(factory.metricCount()) - .arg(gl_version); +#ifdef Q_OS_LINUX + .arg(gl_version) +#endif + ; QString lib_version = tr( "" diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index b7ae9c88f..c373107fa 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -372,8 +372,9 @@ MainWindow::MainWindow(const QDir &home) spacer->setFixedWidth(5 *dpiYFactor); head->addWidget(spacer); - +#ifdef Q_OS_LINUX // check opengl is available with version 2 or higher + // only do this on Linux since Windows and MacOS have opengl "issues" QOffscreenSurface surf; surf.create(); @@ -384,6 +385,7 @@ MainWindow::MainWindow(const QDir &home) // OpenGL version number gl_version = QString::fromUtf8((char *)(ctx.functions()->glGetString(GL_VERSION))); gl_major = Utils::number(gl_version); +#endif /*---------------------------------------------------------------------- * Central Widget