Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/simplebuild_dgcode/data/pkgs/G4/G4OSG/libsrc/Viewer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,13 @@ void G4OSG::Viewer::init()

compviewer->setKeyEventSetsDone(0);//no quit

#ifdef __APPLE__
//macOS: after a window resize (fullscreen toggle, user resize), osgViewer
//calls [NSOpenGLContext update] in the next makeCurrent, which AppKit only
//allows on the main thread. A draw thread (re)started by startThreading()
//then dies with SIGILL, so render in the main thread:
compviewer->setThreadingModel(osgViewer::ViewerBase::SingleThreaded);
#endif
m_viewer->setUpThreading();

// clear stencil buffer... (for outline FX)
Expand Down
Loading