Commit b8d47928 by Ben Clayton

Vulkan: Destruct the list of vk::Query in QueryPool

Bug: b/153168751 Bug: b/153206490 Change-Id: I2822f60aa380ae3885bc674d9f7b1f283c087e95 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/43490 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com>
parent ad6d1b30
......@@ -112,6 +112,11 @@ QueryPool::QueryPool(const VkQueryPoolCreateInfo *pCreateInfo, void *mem)
void QueryPool::destroy(const VkAllocationCallbacks *pAllocator)
{
for(uint32_t i = 0; i < count; i++)
{
pool[i].~Query();
}
vk::deallocate(pool, pAllocator);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment