#11851 Initialize OpenGL when main window is created

This commit is contained in:
Magne Sjaastad committed 2024-11-04 17:34:49 +01:00
1 parent 275526a64a
commit 59df1a655e
1 file changed
+3 -1
@@ -104,7 +104,6 @@
#include "RiuPlotMainWindowTools.h"
#include "RiuProcessMonitor.h"
#include "RiuRecentFileActionProvider.h"
#include "RiuViewer.h"
#include "DockManager.h"
@@ -957,6 +956,9 @@ void RiaGuiApplication::createMainWindow()
messagePanelLogger->addMessagePanel( m_mainWindow->messagePanel() );
}
}
// Initialize OpenGL here to avoid flickering when creating the first 3D view
QOpenGLWidget openGLWidget( m_mainWindow );
}
//--------------------------------------------------------------------------------------------------