Patch for vkCreateInstance()

patch as requested
This commit is contained in:
Markus Stockhausen 2019-10-11 17:23:43 +02:00 committed by kd-11
parent f5817cb430
commit 8adcb8046b

View File

@ -2512,12 +2512,12 @@ public:
VkInstance instance;
VkResult result = vkCreateInstance(&instance_info, nullptr, &instance);
if (result == VK_ERROR_LAYER_NOT_PRESENT)
{
LOG_FATAL(RSX,"Could not initialize VK_LAYER_KHRONOS_validation layer");
}
if (result != VK_SUCCESS)
{
if (result == VK_ERROR_LAYER_NOT_PRESENT)
{
LOG_FATAL(RSX,"Could not initialize layer VK_LAYER_KHRONOS_validation");
}
return 0;
}