diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2019-02-06 16:20:51 +0100 |
---|---|---|
committer | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2019-02-06 16:36:40 +0100 |
commit | 0541d28445170ed2968459beb381df93c0d60c63 (patch) | |
tree | 84e4e4c13734013f33d46b47a65e2e81e3d71a14 | |
parent | 66086d79ed30caf2e49562ea4aa458062f4e73fe (diff) |
vkpipeline-db: make sure to destroy instance/device objects
Found while trying to capture pipelines with Shadow of The
Tomb Raider.
-rw-r--r-- | vkpipeline_db.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vkpipeline_db.cpp b/vkpipeline_db.cpp index b1188f5..fd32f68 100644 --- a/vkpipeline_db.cpp +++ b/vkpipeline_db.cpp @@ -121,6 +121,7 @@ vkpipeline_db_DestroyInstance( const VkAllocationCallbacks *pAllocator) { lock_guard_t l(global_lock); + instance_dispatch[GetKey(instance)].DestroyInstance(instance, pAllocator); instance_dispatch.erase(GetKey(instance)); } @@ -236,6 +237,7 @@ vkpipeline_db_DestroyDevice( const VkAllocationCallbacks *pAllocator) { lock_guard_t l(global_lock); + device_dispatch[GetKey(device)].DestroyDevice(device, pAllocator); device_dispatch.erase(GetKey(device)); } |