diff options
Diffstat (limited to 'vulkan')
-rw-r--r-- | vulkan/libvulkan/swapchain.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/vulkan/libvulkan/swapchain.cpp b/vulkan/libvulkan/swapchain.cpp index 7f944cf171..ee52857916 100644 --- a/vulkan/libvulkan/swapchain.cpp +++ b/vulkan/libvulkan/swapchain.cpp @@ -102,7 +102,6 @@ std::shared_ptr<T> InitSharedPtr(Host host, T* obj) { obj, NativeBaseDeleter<T>(), VulkanAllocator<T>(*GetAllocator(host), AllocScope<Host>::kScope)); } catch (std::bad_alloc&) { - obj->common.decRef(&obj->common); return nullptr; } } |