mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-06 07:12:28 +01:00
Patch v2 for vkCreateInstance()
as requested
This commit is contained in:
parent
8adcb8046b
commit
4d99169d51
|
|
@ -2511,8 +2511,7 @@ public:
|
|||
instance_info.ppEnabledExtensionNames = fast ? nullptr : extensions.data();
|
||||
|
||||
VkInstance instance;
|
||||
VkResult result = vkCreateInstance(&instance_info, nullptr, &instance);
|
||||
if (result != VK_SUCCESS)
|
||||
if (VkResult result = vkCreateInstance(&instance_info, nullptr, &instance); result != VK_SUCCESS)
|
||||
{
|
||||
if (result == VK_ERROR_LAYER_NOT_PRESENT)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue