Vulkan: Add better handling for errors
This commit is contained in:
parent
cc0c661dd7
commit
4a156ab3d7
|
|
@ -83,6 +83,12 @@ namespace Nz
|
|||
}
|
||||
}
|
||||
|
||||
if (!chosenImpl)
|
||||
{
|
||||
NazaraError("No renderer found");
|
||||
return false;
|
||||
}
|
||||
|
||||
s_rendererImpl = std::move(chosenImpl);
|
||||
s_rendererLib = std::move(chosenLib);
|
||||
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ namespace Nz
|
|||
|
||||
if (!s_instance.Create(instanceInfo))
|
||||
{
|
||||
NazaraError("Failed to create instance");
|
||||
NazaraError("Failed to create instance: " + TranslateVulkanError(s_instance.GetLastErrorCode()));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue