From 8adcb8046bfa939da5e157b0fa5896e4bec4ffd8 Mon Sep 17 00:00:00 2001 From: Markus Stockhausen Date: Fri, 11 Oct 2019 17:23:43 +0200 Subject: [PATCH] Patch for vkCreateInstance() patch as requested --- rpcs3/Emu/RSX/VK/VKHelpers.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/VKHelpers.h b/rpcs3/Emu/RSX/VK/VKHelpers.h index ba572c4668..1990304b78 100644 --- a/rpcs3/Emu/RSX/VK/VKHelpers.h +++ b/rpcs3/Emu/RSX/VK/VKHelpers.h @@ -2512,12 +2512,12 @@ public: VkInstance 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_ERROR_LAYER_NOT_PRESENT) + { + LOG_FATAL(RSX,"Could not initialize layer VK_LAYER_KHRONOS_validation"); + } return 0; }