Skip to content

Commit

Permalink
Initialize opengl when creating main window
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Nov 4, 2024
1 parent a706875 commit cecb87f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ApplicationLibCode/Application/RiaGuiApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,11 @@ void RiaGuiApplication::createMainWindow()
m_mainWindow->loadWinGeoAndDockToolBarLayout();
m_mainWindow->showWindow();

{
// Initialize opengl. Doing this here will avoid flickerin when creating the first 3d view
caf::Viewer view( m_mainWindow );
}

// if there is an existing logger, reconnect to it

for ( auto logger : RiaLogging::loggerInstances() )
Expand Down

0 comments on commit cecb87f

Please sign in to comment.