diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-29 12:26:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 12:26:59 +0100 |
commit | e4bc16b7b6a7a9354e6037cb571de934a8ec1430 (patch) | |
tree | 1bd6e508474b83f6edaf5e6869623fa9d14a38db | |
parent | cb91f8d971fa111a12b5238285288e83061fca93 (diff) | |
parent | 771e66b0806bdc6664f45f692fbfe917f993c7c9 (diff) |
Merge pull request #36673 from timothyqiu/crash-fix
Fixes a crash on startup
-rw-r--r-- | drivers/vulkan/vulkan_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp index 7c691340ca..7068f707e6 100644 --- a/drivers/vulkan/vulkan_context.cpp +++ b/drivers/vulkan/vulkan_context.cpp @@ -63,7 +63,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL VulkanContext::_debug_messenger_callback(VkDebugU if (strstr(pCallbackData->pMessage, "wrong ELF class: ELFCLASS32") != NULL) { return VK_FALSE; } - if (strstr(pCallbackData->pMessageIdName, "UNASSIGNED-CoreValidation-DrawState-ClearCmdBeforeDraw") != NULL) { + if (pCallbackData->pMessageIdName && strstr(pCallbackData->pMessageIdName, "UNASSIGNED-CoreValidation-DrawState-ClearCmdBeforeDraw") != NULL) { return VK_FALSE; } |