Commit 014ec481 authored by Martin Schultz's avatar Martin Schultz

moved initGlew call before the glWidget init call so we can use OpenGL

calls during initialization of the Widget, or at least avoid a segfault
when calling opengl functions in makeCurrent
parent 766caeff
......@@ -571,14 +571,14 @@ int main(int argc, char **argv)
}
}
}
// After setting all Options from command line, build the real gui
w->init();
#ifndef __APPLE__
initGlew();
#endif
// After setting all Options from command line, build the real gui
w->init();
const QStringList positionalArguments = parser.positionalArguments();
for ( auto file: positionalArguments ) {
......
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