summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-29 12:26:59 +0100
committerGitHub <noreply@github.com>2020-02-29 12:26:59 +0100
commite4bc16b7b6a7a9354e6037cb571de934a8ec1430 (patch)
tree1bd6e508474b83f6edaf5e6869623fa9d14a38db
parentcb91f8d971fa111a12b5238285288e83061fca93 (diff)
parent771e66b0806bdc6664f45f692fbfe917f993c7c9 (diff)
Merge pull request #36673 from timothyqiu/crash-fix
Fixes a crash on startup
-rw-r--r--drivers/vulkan/vulkan_context.cpp2
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;
}