diff options
| author | Christoffer Green <christoffer.green@gmail.com> | 2019-09-14 07:21:00 +0000 |
|---|---|---|
| committer | Christoffer Green <christoffer.green@gmail.com> | 2019-09-14 07:21:00 +0000 |
| commit | 7585c053c67ea3434f022715b5fa7e8d5a86b295 (patch) | |
| tree | 5ebec73ec0b6e5825cb5213dbcd24505e28426de /Graphics/GraphicsEngineVulkan | |
| parent | Fixed missing reference on output param in MapParamsToD3D11MapParams function (diff) | |
| download | DiligentCore-7585c053c67ea3434f022715b5fa7e8d5a86b295.tar.gz DiligentCore-7585c053c67ea3434f022715b5fa7e8d5a86b295.zip | |
Check for null
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/VulkanUtilities/VulkanInstance.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/VulkanUtilities/VulkanInstance.cpp b/Graphics/GraphicsEngineVulkan/src/VulkanUtilities/VulkanInstance.cpp index 9c884c17..f1818438 100644 --- a/Graphics/GraphicsEngineVulkan/src/VulkanUtilities/VulkanInstance.cpp +++ b/Graphics/GraphicsEngineVulkan/src/VulkanUtilities/VulkanInstance.cpp @@ -110,8 +110,11 @@ namespace VulkanUtilities #endif }; - for (uint32_t ext = 0; ext < GlobalExtensionCount; ++ext) - GlobalExtensions.push_back(ppGlobalExtensionNames[ext]); + if (ppGlobalExtensionNames != nullptr) + { + for (uint32_t ext = 0; ext < GlobalExtensionCount; ++ext) + GlobalExtensions.push_back(ppGlobalExtensionNames[ext]); + } for(const auto* ExtName : GlobalExtensions) { |
