diff --git a/components/sdlutil/sdlcursormanager.cpp b/components/sdlutil/sdlcursormanager.cpp index 9a7c2aa76..70f389136 100644 --- a/components/sdlutil/sdlcursormanager.cpp +++ b/components/sdlutil/sdlcursormanager.cpp @@ -33,6 +33,12 @@ namespace traits->sharedContext = 0; traits->pbuffer = true; + osg::GraphicsContext::ScreenIdentifier si; + si.readDISPLAY(); + traits->displayNum = si.displayNum; + traits->screenNum = si.screenNum; + traits->hostName = si.hostName; + _gc = osg::GraphicsContext::createGraphicsContext(traits.get()); if (!_gc)