Separated OperationsThread out from the GraphicsThread header and introduced

new OperationQueue class.
This commit is contained in:
Robert Osfield
2007-07-09 19:04:36 +00:00
parent 4d04f3f645
commit 44c07b9fad
14 changed files with 626 additions and 672 deletions

View File

@@ -890,9 +890,23 @@ void RenderStage::draw(osg::RenderInfo& renderInfo,RenderLeaf*& previous)
if (useThread)
{
#if 1
ref_ptr<osg::BlockAndFlushOperation> block = new osg::BlockAndFlushOperation;
useThread->add(new DrawInnerOperation( this, renderInfo ));
useThread->add(block.get());
// wait till the DrawInnerOperations is complete.
block->block();
doCopyTexture = false;
#else
useThread->add(new DrawInnerOperation( this, renderInfo ), true);
doCopyTexture = false;
#endif
}
else
{