Hi LH, When you run with multiple heads the master Camera of the viewer won't have a Viewport or a GraphicsContext associated with it, instead the Viewer will have multiple slaves Camera, one for each screen, with each slave Camera with its own GraphcisContext and Viewport.
Robert. On Fri, Jun 6, 2008 at 2:46 AM, LH <[EMAIL PROTECTED]> wrote: > Hi, > > When I am running dual display using Nvidia GeForce 9800GX2 graphics card, > OSG will crash at the code > > viewer->getCamera()->getViewport()->width() or > viewer->getCamera()->getViewport()->height() > > but it will work fine in single display. Thanks. > > > > regards > > LH > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

