mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Fix the mutithread problem of deferred pipeline. (#3321)
This commit is contained in:
@@ -139,6 +139,7 @@ void DeferredPipeline::render(const vector<uint> &cameras) {
|
||||
}
|
||||
}
|
||||
_commandBuffers[0]->end();
|
||||
_device->flushCommands(_commandBuffers);
|
||||
_device->getQueue()->submit(_commandBuffers);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user