Fixes to the multipipe initialization.

This commit is contained in:
Robert Osfield
2003-04-03 14:12:09 +00:00
parent 03a0b4f5de
commit a47a6f0310
3 changed files with 19 additions and 5 deletions

View File

@@ -81,16 +81,20 @@ void SceneView::setDefaults()
_renderStage = new RenderStage;
#ifndef __sgi
DisplayListVisitor::Mode dlvMode = DisplayListVisitor::COMPILE_DISPLAY_LISTS|DisplayListVisitor::COMPILE_STATE_ATTRIBUTES;
#ifdef __sgi
dlvMode = DisplayListVisitor::COMPILE_STATE_ATTRIBUTES;
#endif
// sgi's IR graphics has a problem with lighting and display lists, as it seems to store
// lighting state with the display list, and the display list visitor doesn't currently apply
// 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();
DisplayListVisitor* dlv = new DisplayListVisitor(dlvMode);
dlv->setState(_state.get());
dlv->setNodeMaskOverride(0xffffffff);
_initVisitor = dlv;
#endif
_updateVisitor = new UpdateVisitor;