mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-17 08:26:50 -04:00
Fix $DISPLAY not being accounted for in cursor decompression context
This commit is contained in:
parent
75ace9f8b5
commit
99eb78fc19
@ -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…
x
Reference in New Issue
Block a user