Throw the reset switch.
- fix up CanvasMgr so canvas works after new reset.
This commit is contained in:
parent
5ce2a067ca
commit
86ba2a1628
2 changed files with 1 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue