[osg-users] GraphicContext null

Robert Osfield robert.osfield at gmail.com
Fri Nov 27 09:35:15 PST 2015


HI Tony,

My best guess would be that the X11 code that is querying the number of
screens isn't functioning for some reason.  I don't have Fedora so can't
check this myself.  You'll need to have a look at the
OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp for the
X11WindwSystemInterface implementation is doing, or not as the case may be.

Curiously the X11WindowingSystemInterface::getNumScreens() method only uses
a couple of standard X11 calls without any extensions to X11 so it's
surprising that it's failing.  Perhaps the X11 system you are working on is
broken in some way.

Robert.

On 27 November 2015 at 07:40, Tony Vasile <minghia at gmail.com> wrote:

> I having a few problems with running an executable on Fedora Core 23. When
> I query the output of osg::GraphicsContext::WindowingSystemInterface I get
> a valid pointer. When I call getNumScreens() I get 0 as the value. Any
> ideas what I need to set in my environment to get this to work? I am using
> the default window manager.
>
> ------------------------
> Tony V
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=65774#65774
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151127/9972e9b8/attachment-0002.htm>


More information about the osg-users mailing list