From 7e971eb0328d5114cf273e67bce308be586c99ff Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Wed, 16 Mar 2016 17:41:28 +0100 Subject: [PATCH] vulkan: Fix for get_memory_mapping --- rpcs3/Emu/RSX/VK/VKHelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKHelpers.cpp b/rpcs3/Emu/RSX/VK/VKHelpers.cpp index 2c941fb29d..9616bc9018 100644 --- a/rpcs3/Emu/RSX/VK/VKHelpers.cpp +++ b/rpcs3/Emu/RSX/VK/VKHelpers.cpp @@ -44,7 +44,7 @@ namespace vk result.device_local = VK_MAX_MEMORY_TYPES; result.host_visible_coherent = VK_MAX_MEMORY_TYPES; - for (int i = 0; i < VK_MAX_MEMORY_TYPES; i++) + for (int i = 0; i < memory_properties.memoryTypeCount; i++) { bool is_device_local = !!(memory_properties.memoryTypes[i].propertyFlags & VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); if (is_device_local)