Move call to endFrame after commit (#696)

This commit is contained in:
Ben Doherty
2019-01-11 15:42:34 -08:00
committed by GitHub
parent 0c1fdc88ec
commit 0cccbda9b9

View File

@@ -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();