mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Patch v2 for vkCreateInstance()
as requested
This commit is contained in:
parent
8adcb8046b
commit
4d99169d51
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue