diff --git a/src/modules/graphic/osggraph/Viewer/OsgGraphicsWindow.h b/src/modules/graphic/osggraph/Viewer/OsgGraphicsWindow.h index d9dbdcdce..085545e27 100644 --- a/src/modules/graphic/osggraph/Viewer/OsgGraphicsWindow.h +++ b/src/modules/graphic/osggraph/Viewer/OsgGraphicsWindow.h @@ -25,7 +25,7 @@ #include -namespace OSGUtil +namespace OSGUtil { class OsgGraphicsWindowSDL2 : public osgViewer::GraphicsWindow { diff --git a/src/modules/graphic/osggraph/Viewer/OsgScreens.cpp b/src/modules/graphic/osggraph/Viewer/OsgScreens.cpp index 4a462a53e..50ce6ffdb 100644 --- a/src/modules/graphic/osggraph/Viewer/OsgScreens.cpp +++ b/src/modules/graphic/osggraph/Viewer/OsgScreens.cpp @@ -75,7 +75,10 @@ void SDScreens::Init(int x,int y, int width, int height, osg::ref_ptr Camera->setPreDrawCallback(new CameraDrawnCallback); #else SDL_Window* GfuiWindow = GfScrGetMainWindow(); - viewer->setThreadingModel(osgViewer::Viewer::CullThreadPerCameraDrawThreadPerContext); + //viewer->setThreadingModel(osgViewer::Viewer::CullThreadPerCameraDrawThreadPerContext); + //viewer->setThreadingModel(osgViewer::Viewer::CullDrawThreadPerContext); + //viewer->setThreadingModel(osgViewer::Viewer::DrawThreadPerContext); + viewer->setThreadingModel(osgViewer::Viewer::SingleThreaded); osg::ref_ptr traits = new osg::GraphicsContext::Traits; SDL_GetWindowPosition(GfuiWindow, &traits->x, &traits->y); SDL_GetWindowSize(GfuiWindow, &traits->width, &traits->height);