From 4d99169d5120cea13f147db2030b2ca2ba45be81 Mon Sep 17 00:00:00 2001 From: Markus Stockhausen Date: Fri, 11 Oct 2019 17:54:28 +0200 Subject: [PATCH] Patch v2 for vkCreateInstance() as requested --- rpcs3/Emu/RSX/VK/VKHelpers.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/VKHelpers.h b/rpcs3/Emu/RSX/VK/VKHelpers.h index 1990304b78..987facb1f4 100644 --- a/rpcs3/Emu/RSX/VK/VKHelpers.h +++ b/rpcs3/Emu/RSX/VK/VKHelpers.h @@ -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) {