Moved the InitVisitor::setState() into the SceneView::init() method to make

sure that it always has the correct State object at the of the init.
This commit is contained in:
Robert Osfield
2004-02-02 16:55:29 +00:00
parent f5e2f7c731
commit e266385769

View File

@@ -99,7 +99,6 @@ void SceneView::setDefaults()
// state before creating display lists. So will disable the init visitor default, this won't
// affect functionality since the display lists will be created as and when needed.
DisplayListVisitor* dlv = new DisplayListVisitor(dlvMode);
dlv->setState(_state.get());
dlv->setNodeMaskOverride(0xffffffff);
_initVisitor = dlv;
@@ -149,6 +148,7 @@ void SceneView::init()
{
_initVisitor->reset();
_initVisitor->setFrameStamp(_frameStamp.get());
_initVisitor->setState(_state.get());
if (_frameStamp.valid())
{