Move call to endFrame after commit (#696)
This commit is contained in:
@@ -383,13 +383,13 @@ void FRenderer::endFrame() {
|
||||
}
|
||||
mFrameSkipper.endFrame();
|
||||
|
||||
driver.endFrame(mFrameId);
|
||||
|
||||
if (mSwapChain) {
|
||||
mSwapChain->commit(driver);
|
||||
mSwapChain = nullptr;
|
||||
}
|
||||
|
||||
driver.endFrame(mFrameId);
|
||||
|
||||
// Run the component managers' GC in parallel
|
||||
// WARNING: while doing this we can't access any component manager
|
||||
auto& js = engine.getJobSystem();
|
||||
|
||||
Reference in New Issue
Block a user