Merge pull request #7523 from stenzek/vulkan-draw-calls

Vulkan: Add missing increment of draw call count
This commit is contained in:
Pierre Bourdon 2018-10-28 02:42:21 +01:00 committed by GitHub
commit 48862850ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ void VertexManager::vFlush()
// Execute the draw // Execute the draw
vkCmdDrawIndexed(g_command_buffer_mgr->GetCurrentCommandBuffer(), index_count, 1, vkCmdDrawIndexed(g_command_buffer_mgr->GetCurrentCommandBuffer(), index_count, 1,
m_current_draw_base_index, m_current_draw_base_vertex, 0); m_current_draw_base_index, m_current_draw_base_vertex, 0);
INCSTAT(stats.thisFrame.numDrawCalls);
} }
StateTracker::GetInstance()->OnDraw(); StateTracker::GetInstance()->OnDraw();