summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorDiligentGraphics <egor.yusov@gmail.com>2019-09-15 15:28:46 +0000
committerGitHub <noreply@github.com>2019-09-15 15:28:46 +0000
commit9aa1b7c428037a810304318013637f9b291e793c (patch)
tree5ebec73ec0b6e5825cb5213dbcd24505e28426de /Graphics/GraphicsEngineVulkan
parentFixed missing reference on output param in MapParamsToD3D11MapParams function (diff)
parentCheck for null (diff)
downloadDiligentCore-9aa1b7c428037a810304318013637f9b291e793c.tar.gz
DiligentCore-9aa1b7c428037a810304318013637f9b291e793c.zip
Merge pull request #103 from ChristofferGreen/master
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)
{