mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 01:08:39 +12:00
Patch for vkCreateInstance()
patch as requested
This commit is contained in:
parent
f5817cb430
commit
8adcb8046b
1 changed files with 4 additions and 4 deletions
|
@ -2512,12 +2512,12 @@ public:
|
||||||
|
|
||||||
VkInstance instance;
|
VkInstance instance;
|
||||||
VkResult result = vkCreateInstance(&instance_info, nullptr, &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_SUCCESS)
|
||||||
{
|
{
|
||||||
|
if (result == VK_ERROR_LAYER_NOT_PRESENT)
|
||||||
|
{
|
||||||
|
LOG_FATAL(RSX,"Could not initialize layer VK_LAYER_KHRONOS_validation");
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue