- create a new error class for vulkan errors as they are only recoverable during initialization (unlike CRecoverableError which is recoverable during normal processing)

- improve vulkan errors by including the status code returned by vulkan if they fail
This commit is contained in:
Magnus Norddahl 2019-05-23 14:09:05 +02:00
commit 756c593e96
9 changed files with 126 additions and 90 deletions

View file

@ -137,7 +137,7 @@ void I_InitGraphics ()
{
Video = new Win32VulkanVideo();
}
catch (CRecoverableError &error)
catch (CVulkanError &error)
{
Printf(TEXTCOLOR_RED "Initialization of Vulkan failed: %s\n", error.what());
Video = new Win32GLVideo();