From 5fbb5828562f1e4ab1723efe6689b6c61a8787c2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 7 May 2008 17:06:36 +0000 Subject: [PATCH] Commented out checking of DISPLAY env var --- src/osgPlugins/cfg/ReaderWriterCFG.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/cfg/ReaderWriterCFG.cpp b/src/osgPlugins/cfg/ReaderWriterCFG.cpp index d43c32b37..927871c38 100644 --- a/src/osgPlugins/cfg/ReaderWriterCFG.cpp +++ b/src/osgPlugins/cfg/ReaderWriterCFG.cpp @@ -68,6 +68,9 @@ static osg::GraphicsContext::Traits* buildTrait(RenderSurface& rs) case(VisualChooser::SampleBuffers): traits->sampleBuffers = it->_parameter; break; } } + + std::cout<<"Set up Traits ( rs.getScreenNum() = "<hostName = rs.getHostName(); traits->displayNum = rs.getDisplayNum(); @@ -112,12 +115,14 @@ static osgViewer::View* load(const std::string& file, const osgDB::ReaderWriter: else { osg::GraphicsContext::Traits* newtraits = buildTrait(*rs); - + +#if 0 osg::GraphicsContext::ScreenIdentifier si; si.readDISPLAY(); if (si.displayNum>=0) newtraits->displayNum = si.displayNum; if (si.screenNum>=0) newtraits->screenNum = si.screenNum; +#endif gc = osg::GraphicsContext::createGraphicsContext(newtraits);