Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit 937b976e authored by Frédéric Larue's avatar Frédéric Larue
Browse files

Qt warning related to the SurfaceFormat settings fixed.

parent 9cd51273
......@@ -23,11 +23,6 @@ int UILaunch( int argc, char **argv )
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF /*| _CRTDBG_CHECK_ALWAYS_DF*/ );
#endif
// Launch the Qt GUI.
QApplication::setAttribute( Qt::AA_UseDesktopOpenGL, true );
QApplication::setAttribute( Qt::AA_ShareOpenGLContexts, true );
QApplication a( argc, argv );
QSurfaceFormat format;
format.setRenderableType( QSurfaceFormat::OpenGL ); // OpenGL renderable surface.
format.setProfile( QSurfaceFormat::CompatibilityProfile ); // Ensure compatibility with former OpenGL versions.
......@@ -43,6 +38,11 @@ int UILaunch( int argc, char **argv )
format.setSwapInterval( 0 ); // Disable VSync.
QSurfaceFormat::setDefaultFormat( format );
// Launch the Qt GUI.
QApplication::setAttribute( Qt::AA_UseDesktopOpenGL, true );
QApplication::setAttribute( Qt::AA_ShareOpenGLContexts, true );
QApplication a( argc, argv );
UIMainWindow *mainWin = new UIMainWindowT(); // Use default GUI main window.
mainWin->onInitializingApp();
mainWin->init();
......
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