[osg-users] GraphicContext null

Tony Vasile minghia at gmail.com
Mon Nov 30 00:11:46 PST 2015


marchingcubes wrote:
> This  may be due to the fact that Fedora now runs gdm on its own screen.
> 
> e.g. it used to be that you could more or less assume setting DISPLAY=:0 and running an X11 application would show the app on the machines 'local' display. With Fedora 22+ this is now DISPLAY=:1
> 
> It looks to me, after glancing at the window setup code, that the Traits used to configure a 'single screen' will default to 0 as the screen number, and thus fail to create the context, as the logged-in user is not authed to create resources on the gdm screen.
> 


I tried to set the variable to :1 and xeyes run but I am still getting 0 from getNumScreens(). The sequence I'm using is:


Code:

osg::GraphicsContext::WindowingSystemInterface* wsi =
    osg::GraphicsContext::getWindowingSystemInterface();

  if (wsi) _maxPipes = wsi->getNumScreens();


 

Is this correct?

------------------------
Tony V

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65797#65797








More information about the osg-users mailing list