diff --git a/src/openscad.cc b/src/openscad.cc index cb245e4f..4374d9ad 100644 --- a/src/openscad.cc +++ b/src/openscad.cc @@ -705,7 +705,7 @@ int gui(vector &inputFiles, const fs::path &original_path, int argc, cha updater->init(); #endif -#if !(QT_VERSION >= 0x050400) +#ifndef USE_QOPENGLWIDGET // This workaround appears to only be needed when QGLWidget is used QOpenGLWidget // available in Qt 5.4 is much better. QGLFormat fmt;