diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-07-23 09:37:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-23 09:37:58 -0400 |
| commit | cf503553eb44f104072d8add4069f8352f7bad22 (patch) | |
| tree | 0fc7cfadd2f5ff10b9c10d5f4861efec22834a7a /tools/gfx/vulkan/vk-swap-chain.cpp | |
| parent | 115920406ebd747e02e1e6a8e4595f7d88eef0d9 (diff) | |
Fix for vulkan tests failing (#1456)
* Clean up device when VKRenderer dtor is run.
Added destroy methods to VulkanSwapChain & VulkanDeviceQueue
* Small fixes around testing if DeviceQueue is valid.
* Disable active-mask tests. Different drivers appear to change the results.
Diffstat (limited to 'tools/gfx/vulkan/vk-swap-chain.cpp')
| -rw-r--r-- | tools/gfx/vulkan/vk-swap-chain.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/gfx/vulkan/vk-swap-chain.cpp b/tools/gfx/vulkan/vk-swap-chain.cpp index 5cf2e96ae..d9b3a495d 100644 --- a/tools/gfx/vulkan/vk-swap-chain.cpp +++ b/tools/gfx/vulkan/vk-swap-chain.cpp @@ -348,7 +348,7 @@ void VulkanSwapChain::_destroySwapChain() m_images.clear(); } -VulkanSwapChain::~VulkanSwapChain() +void VulkanSwapChain::destroy() { _destroySwapChain(); @@ -359,6 +359,12 @@ VulkanSwapChain::~VulkanSwapChain() } } + +VulkanSwapChain::~VulkanSwapChain() +{ + destroy(); +} + int VulkanSwapChain::nextFrontImageIndex() { if (!hasValidSwapChain()) |
