From Richard Schmidt, "attached you will find a set of small fixes and features.

CullVisitor/SceneView:

*Feature: This version supports multiple clearnodes in the graph, one per renderstage.

 

Text:

*Feature: Performance Enhancement when calling SetBackdropColor

 

Material:

*Fix: OpenGL calls are now made according to the OpenGL Standard

"
This commit is contained in:
Robert Osfield
2007-12-10 20:30:05 +00:00
parent 9d260213f7
commit c5704586f9
3 changed files with 11 additions and 25 deletions

View File

@@ -764,9 +764,6 @@ bool SceneView::cullStage(const osg::Matrixd& projection,const osg::Matrixd& mod
cullVisitor->inheritCullSettings(*this);
cullVisitor->setClearNode(NULL); // reset earth sky on each frame.
cullVisitor->setStateGraph(rendergraph);
cullVisitor->setRenderStage(renderStage);
@@ -829,22 +826,6 @@ bool SceneView::cullStage(const osg::Matrixd& projection,const osg::Matrixd& mod
if (_globalStateSet.valid()) cullVisitor->popStateSet();
const osg::ClearNode* clearNode = cullVisitor->getClearNode();
if (clearNode)
{
if (clearNode->getRequiresClear())
{
renderStage->setClearColor(clearNode->getClearColor());
renderStage->setClearMask(clearNode->getClearMask());
}
else
{
// we have an earth sky implementation to do the work for use
// so we don't need to clear.
renderStage->setClearMask(0);
}
}
renderStage->sort();
// prune out any empty StateGraph children.