Added applyProjectionMatrix(0); & applyModelViewMatrix(0); into

osg::State::popAllStateSets(), removed some debugging output.
This commit is contained in:
Robert Osfield
2003-09-10 23:18:52 +00:00
parent 3c8ab37783
commit 41a07127fe
2 changed files with 4 additions and 1 deletions

View File

@@ -291,7 +291,7 @@ inline RefMatrix* CullStack::createOrReuseMatrix(const osg::Matrix& value)
while (_currentReuseMatrixIndex<_reuseMatrixList.size() &&
_reuseMatrixList[_currentReuseMatrixIndex]->referenceCount()>1)
{
notify(osg::NOTICE)<<"Warning:createOrReuseMatrix() skipping multiply refrenced entry."<< std::endl;
//notify(osg::NOTICE)<<"Warning:createOrReuseMatrix() skipping multiply refrenced entry."<< std::endl;
++_currentReuseMatrixIndex;
}

View File

@@ -151,6 +151,9 @@ void State::pushStateSet(const StateSet* dstate)
void State::popAllStateSets()
{
while (!_drawStateStack.empty()) popStateSet();
applyProjectionMatrix(0);
applyModelViewMatrix(0);
}
void State::popStateSet()