[osg-users] getWindowingSystemInterface() fails on Ubuntu 18.04
Julien Valentin
julienvalentin51 at gmail.com
Wed Sep 5 07:23:58 PDT 2018
Sorry again
After a lot of bullshit here's a correct answer
for your code you should replace
wsi->getNumScreens()
with
wsi->getNumScreens(osg::GraphicsContext::ScreenIdentifier(1))
to work on DISPLAY=:1.0
mp3butcher wrote:
> Sorry I misinterpreted the code and said bullshit
> there's really bug in X11WindowingSystemInterface reporting 0 screens
>
>
> mp3butcher wrote:
> > WindowingSystemInterface is an interface implemented in system dependant osgViewer::XXXWindowingSystemInterface
> > What may be done is to add a system agnotistic windowInterface in osgviewer
> >
> > #ifdef SYS
> > typedef osgViewer::SYSWindowingSystemInterface osgViewer::WindowingInterface
> > #else if SYS2
> > typedef osgViewer::SYS2WindowingSystemInterface osgViewer::WindowingInterface
> >
> > In your case try to use osgUtil::X11WindowingSystemInterface
>
------------------------
Twirling twirling twirling toward freedom
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74656#74656
More information about the osg-users
mailing list