GraphicsContext::WindowingSystemInterface* wsi
= osg::GraphicsContext::getWindowingSystemInterface();
GraphicsContext::Traits* traits = new osg::GraphicsContext::Traits;
- traits->readDISPLAY();
-
- unsigned screenwidth = 0;
- unsigned screenheight = 0;
- wsi->getScreenResolution(*traits, screenwidth, screenheight);
+ traits->readDISPLAY();
if (traits->displayNum < 0)
traits->displayNum = 0;
if (traits->screenNum < 0)
if (stencil)
traits->stencil = 8;
+ unsigned screenwidth = 0;
+ unsigned screenheight = 0;
+ wsi->getScreenResolution(*traits, screenwidth, screenheight);
+
traits->doubleBuffer = true;
traits->mipMapGeneration = true;
traits->windowName = "FlightGear";