Browse Source

Merge pull request #36673 from timothyqiu/crash-fix

Fixes a crash on startup
Rémi Verschelde 5 năm trước cách đây
mục cha
commit
e4bc16b7b6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/vulkan/vulkan_context.cpp

+ 1 - 1
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;
 	}