mirror of
https://github.com/AxioDL/boo.git
synced 2025-07-04 12:15:52 +00:00
Ensure MessageBox call only emitted for Windows
This commit is contained in:
parent
3076c0525d
commit
6473014178
@ -312,10 +312,15 @@ void VulkanContext::initVulkan(const char* appName)
|
|||||||
VkResult instRes = vk::CreateInstance(&instInfo, nullptr, &m_instance);
|
VkResult instRes = vk::CreateInstance(&instInfo, nullptr, &m_instance);
|
||||||
if (instRes != VK_SUCCESS)
|
if (instRes != VK_SUCCESS)
|
||||||
{
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
MessageBoxW(nullptr, L"Error creating Vulkan instance\n\n"
|
MessageBoxW(nullptr, L"Error creating Vulkan instance\n\n"
|
||||||
L"The Vulkan runtime is installed, but there are no supported "
|
L"The Vulkan runtime is installed, but there are no supported "
|
||||||
L"hardware vendor interfaces present",
|
L"hardware vendor interfaces present",
|
||||||
L"Vulkan Error", MB_OK | MB_ICONERROR);
|
L"Vulkan Error", MB_OK | MB_ICONERROR);
|
||||||
|
#else
|
||||||
|
Log.report(logvisor::Fatal, "The Vulkan runtime is installed, but there are no supported "
|
||||||
|
"hardware vendor interfaces present");
|
||||||
|
#endif
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user