mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 12:30:32 +00:00
SDL: Report Vulkan initialization errors
This commit is contained in:
parent
cf3c573222
commit
c1c4066c76
1 changed files with 2 additions and 1 deletions
|
@ -449,13 +449,14 @@ DFrameBuffer *SDLVideo::CreateFrameBuffer ()
|
||||||
device = new VulkanDevice();
|
device = new VulkanDevice();
|
||||||
fb = new VulkanFrameBuffer(nullptr, vid_fullscreen, device);
|
fb = new VulkanFrameBuffer(nullptr, vid_fullscreen, device);
|
||||||
}
|
}
|
||||||
catch (CVulkanError const&)
|
catch (CVulkanError const &error)
|
||||||
{
|
{
|
||||||
if (Priv::window != nullptr)
|
if (Priv::window != nullptr)
|
||||||
{
|
{
|
||||||
Priv::DestroyWindow();
|
Priv::DestroyWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Printf(TEXTCOLOR_RED "Initialization of Vulkan failed: %s\n", error.what());
|
||||||
Priv::vulkanEnabled = false;
|
Priv::vulkanEnabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue