diff options
Diffstat (limited to 'layers/mem_tracker.cpp')
| -rw-r--r-- | layers/mem_tracker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp index f2b3c915..1ae5bde6 100644 --- a/layers/mem_tracker.cpp +++ b/layers/mem_tracker.cpp @@ -2923,7 +2923,7 @@ VK_LAYER_EXPORT VkResult VKAPI vkGetSwapChainInfoWSI( { VkResult result = get_dispatch_table(mem_tracker_device_table_map, (void*) swapChain.handle)->GetSwapChainInfoWSI(device, swapChain, infoType, pDataSize, pData); - if (infoType == VK_SWAP_CHAIN_INFO_TYPE_IMAGES_WSI && result == VK_SUCCESS) { + if (infoType == VK_SWAP_CHAIN_INFO_TYPE_IMAGES_WSI && result == VK_SUCCESS && pData != NULL) { const size_t count = *pDataSize / sizeof(VkSwapChainImagePropertiesWSI); MT_SWAP_CHAIN_INFO *pInfo = swapChainMap[swapChain.handle]; |
