diff --git a/engine/source/runtime/function/render/source/vulkan_manager/context/vulkan_context.cpp b/engine/source/runtime/function/render/source/vulkan_manager/context/vulkan_context.cpp index 981245204..c42205e3c 100644 --- a/engine/source/runtime/function/render/source/vulkan_manager/context/vulkan_context.cpp +++ b/engine/source/runtime/function/render/source/vulkan_manager/context/vulkan_context.cpp @@ -357,9 +357,9 @@ void Pilot::PVulkanContext::initializePhysicalDevice() } } - if (VK_NULL_HANDLE == _physical_device) + if (_physical_device == VK_NULL_HANDLE) { - throw std::runtime_error("enumerate physical devices"); + throw std::runtime_error("failed to find suitable physical device"); } } }