From Stephan Huber, "the IncrementalCompileOperation-class throws away compiled compile-sets,

when no compileCompletedCallback is set. Attached you'll find a simple
fix for this bug."
This commit is contained in:
Robert Osfield 2010-06-14 15:22:35 +00:00
parent d1a3350af0
commit f2f085bc3f

View File

@ -410,9 +410,9 @@ void IncrementalCompileOperation::operator () (osg::GraphicsContext* context)
}
}
if (csCompleted && cs->_compileCompletedCallback.valid())
if (csCompleted)
{
if (cs->_compileCompletedCallback->compileCompleted(cs))
if (cs->_compileCompletedCallback.valid() && cs->_compileCompletedCallback->compileCompleted(cs))
{
// callback will handle merging of subgraph so no need to place CompileSet in merge.
}