Added applyProjectionMatrix(0); & applyModelViewMatrix(0); into
osg::State::popAllStateSets(), removed some debugging output.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -151,6 +151,9 @@ void State::pushStateSet(const StateSet* dstate)
|
||||
void State::popAllStateSets()
|
||||
{
|
||||
while (!_drawStateStack.empty()) popStateSet();
|
||||
|
||||
applyProjectionMatrix(0);
|
||||
applyModelViewMatrix(0);
|
||||
}
|
||||
|
||||
void State::popStateSet()
|
||||
|
||||
Reference in New Issue
Block a user