fixed thread contention hazard

This commit is contained in:
turanszkij
2017-09-09 20:04:56 +02:00
parent 7c34cd6980
commit ea5a14d331
11 changed files with 38 additions and 91 deletions
+2
View File
@@ -161,6 +161,8 @@ void MainComponent::Render()
wiLua::GetGlobal()->Render();
wiProfiler::GetInstance().BeginRange("GPU Frame", wiProfiler::DOMAIN_GPU, GRAPHICSTHREAD_IMMEDIATE);
wiRenderer::BindPersistentState(GRAPHICSTHREAD_IMMEDIATE);
wiImage::BindPersistentState(GRAPHICSTHREAD_IMMEDIATE);
getActiveComponent()->Render();
wiProfiler::GetInstance().EndRange(GRAPHICSTHREAD_IMMEDIATE); // GPU Frame
}