mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 15:15:31 +00:00
Fix $DISPLAY not being accounted for in cursor decompression context
This commit is contained in:
parent
75ace9f8b5
commit
99eb78fc19
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,12 @@ namespace
|
||||||
traits->sharedContext = 0;
|
traits->sharedContext = 0;
|
||||||
traits->pbuffer = true;
|
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());
|
_gc = osg::GraphicsContext::createGraphicsContext(traits.get());
|
||||||
|
|
||||||
if (!_gc)
|
if (!_gc)
|
||||||
|
|
Loading…
Reference in a new issue