mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-02 20:30:46 -06:00
#11851 Initialize OpenGL when main window is created
This commit is contained in:
1 parent
275526a64a
commit
59df1a655e
1 file changed
+3
-1
@@ -104,7 +104,6 @@
|
|||||||
#include "RiuPlotMainWindowTools.h"
|
#include "RiuPlotMainWindowTools.h"
|
||||||
#include "RiuProcessMonitor.h"
|
#include "RiuProcessMonitor.h"
|
||||||
#include "RiuRecentFileActionProvider.h"
|
#include "RiuRecentFileActionProvider.h"
|
||||||
#include "RiuViewer.h"
|
|
||||||
|
|
||||||
#include "DockManager.h"
|
#include "DockManager.h"
|
||||||
|
|
||||||
@@ -957,6 +956,9 @@ void RiaGuiApplication::createMainWindow()
|
|||||||
messagePanelLogger->addMessagePanel( m_mainWindow->messagePanel() );
|
messagePanelLogger->addMessagePanel( m_mainWindow->messagePanel() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize OpenGL here to avoid flickering when creating the first 3D view
|
||||||
|
QOpenGLWidget openGLWidget( m_mainWindow );
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in new issue
Block a user