Merge pull request #533 from birsoyo/bugfix/multidraw-indirect-call

Pass the full count of the indirectCommands to vkCmdDrawIndexedIndirect
This commit is contained in:
Sascha Willems 2019-01-12 19:15:55 +01:00 committed by GitHub
commit cd8b82b3fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,7 +200,7 @@ public:
if (vulkanDevice->features.multiDrawIndirect)
{
vkCmdDrawIndexedIndirect(drawCmdBuffers[i], indirectCommandsBuffer.buffer, 0, indirectStats.drawCount, sizeof(VkDrawIndexedIndirectCommand));
vkCmdDrawIndexedIndirect(drawCmdBuffers[i], indirectCommandsBuffer.buffer, 0, indirectCommands.size(), sizeof(VkDrawIndexedIndirectCommand));
}
else
{