Commit c3107993 authored by Martin Schultz's avatar Martin Schultz
Browse files

added compatibility change that i forgot to push

parent 65a8dbfe
......@@ -261,11 +261,12 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
format.setVersion(4,3);
#endif
if (OpenFlipper::Options::debug())
format.setOption(format.options() | QSurfaceFormat::DebugContext);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 4))
if (OpenFlipper::Options::debug())
format.setOption(format.options() | QSurfaceFormat::DebugContext);
glWidget_ = new OFGLWidget();
glWidget_->setFormat(format);
glWidget_->makeCurrent();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment