mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-29 14:49:54 -06: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 New Issue
Block a user