only flush pending dirty resources while idle

This commit is contained in:
baldurk
2015-10-29 11:52:04 +01:00
parent 198ab2b714
commit 0d66a78105
@@ -450,9 +450,11 @@ VkResult WrappedVulkan::vkQueuePresentKHR(
VkPresentInfoKHR* pPresentInfo)
{
if(m_State == WRITING_IDLE)
{
RenderDoc::Inst().Tick();
GetResourceManager()->FlushPendingDirty();
GetResourceManager()->FlushPendingDirty();
}
m_FrameCounter++; // first present becomes frame #1, this function is at the end of the frame