1
0
Fork 0

Throw the reset switch.

- fix up CanvasMgr so canvas works after new reset.
This commit is contained in:
James Turner 2014-03-07 12:40:14 +00:00
parent 5ce2a067ca
commit 86ba2a1628
2 changed files with 1 additions and 9 deletions

View file

@ -194,14 +194,6 @@ DesktopGroup::DesktopGroup():
stateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF);
_width = _height = -1;
// Do not change values on reinit
_width.node()->setAttribute(SGPropertyNode::PRESERVE, true);
_height.node()->setAttribute(SGPropertyNode::PRESERVE, true);
// Do not restore windows on reinit (all windows will need to be recreated,
// but hey it's a reset ;-))
_node->setAttribute(SGPropertyNode::PRESERVE, true);
}
//------------------------------------------------------------------------------

View file

@ -142,7 +142,7 @@
#include <GUI/CocoaHelpers.h> // for Mac impl of platformDefaultDataPath()
#endif
//#define NEW_RESET 1
#define NEW_RESET 1
using std::string;
using std::endl;