Skip to content
Snippets Groups Projects
Commit 507fbaef authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Hack to allow OpenGL window in QDockWidget

parent 4b5a8be6
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,13 @@ int main(int argc, char* argv[])
if( options.enableHighDPISupport())
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#ifdef BORNAGAIN_OPENGL
// Hack to take care of OpenGL window appearance in the context of QDockWidget
// See http://doc.qt.io/qt-5/qopenglwidget.html#resource-initialization-and-cleanup
// FIXME Make correct clenup as explained in the link
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
#endif
QApplication app(argc, argv);
if (!options.find("with-debug"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment