mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Log the specific error if vkCreateInstance fails in demo program
This commit is contained in:
@@ -265,7 +265,11 @@ void VulkanGraphicsTest::Prepare(int argc, char **argv)
|
||||
vkh::InstanceCreateInfo(app, enabledLayers, enabledInstExts).next(instInfoNext), NULL,
|
||||
&inst);
|
||||
|
||||
if(vkr == VK_SUCCESS)
|
||||
if(vkr != VK_SUCCESS)
|
||||
{
|
||||
TEST_ERROR("Error initialising vulkan instance: %d", vkr);
|
||||
}
|
||||
else
|
||||
{
|
||||
volkLoadInstance((VkInstance)inst);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user