Permalink
Browse files

Vulkan: Account inside frame from push side.

We don't want a dependency on the thread state, of course.
  • Loading branch information...
unknownbrackets committed Nov 5, 2017
1 parent dc200a4 commit ab9aee9a07a853006eb35c6a3071e5f53e867e3c
Showing with 2 additions and 1 deletion.
  1. +2 −1 ext/native/thin3d/VulkanRenderManager.cpp
@@ -573,6 +573,8 @@ void VulkanRenderManager::Finish() {
frameData.pull_condVar.notify_all();
}
vulkan_->EndFrame();
insideFrame_ = false;
}
void VulkanRenderManager::Wipe() {
@@ -671,7 +673,6 @@ void VulkanRenderManager::Submit(int frame, bool triggerFence) {
void VulkanRenderManager::EndSubmitFrame(int frame) {
FrameData &frameData = frameData_[frame];
frameData.hasBegun = false;
insideFrame_ = false;
Submit(frame, true);

0 comments on commit ab9aee9

Please sign in to comment.