summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorChristoffer Green <christoffer.green@gmail.com>2019-09-14 07:21:00 +0000
committerChristoffer Green <christoffer.green@gmail.com>2019-09-14 07:21:00 +0000
commit7585c053c67ea3434f022715b5fa7e8d5a86b295 (patch)
tree5ebec73ec0b6e5825cb5213dbcd24505e28426de /Graphics/GraphicsEngineVulkan
parentFixed missing reference on output param in MapParamsToD3D11MapParams function (diff)
downloadDiligentCore-7585c053c67ea3434f022715b5fa7e8d5a86b295.tar.gz
DiligentCore-7585c053c67ea3434f022715b5fa7e8d5a86b295.zip
Check for null
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/VulkanUtilities/VulkanInstance.cpp7
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)
{