From 99eb78fc19d86508e641f08ae74845fec4dee9a0 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 17 May 2015 22:16:14 +0200 Subject: [PATCH] Fix $DISPLAY not being accounted for in cursor decompression context --- components/sdlutil/sdlcursormanager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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)