Browse Source

turnip: Clean up BO on vkDestroyQueryPool

turnip-occlusion-query
Brian Ho 6 years ago
parent
commit
9227c4fe1f
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedreno/vulkan/tu_query.c

+ 4
- 0
src/freedreno/vulkan/tu_query.c View File

@@ -130,6 +130,10 @@ tu_DestroyQueryPool(VkDevice _device,
if (!pool)
return;

if (pool->bo) {
tu_bo_finish(device, pool->bo);
free(pool->bo);
}
vk_free2(&device->alloc, pAllocator, pool);
}


Loading…
Cancel
Save