diff --git a/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp b/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp index 0f4578067..867c3bef5 100644 --- a/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp +++ b/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp @@ -969,7 +969,7 @@ bool WrappedVulkan::Serialise_vkCreateDevice(SerialiserType &ser, VkPhysicalDevi // see above in Serialise_vkEnumeratePhysicalDevices where this is encoded uint32_t physicalDeviceIndex = GetPhysicalDeviceIndexFromHandle(Unwrap(physicalDevice)); - physicalDevice = m_ReplayPhysicalDevices[physicalDeviceIndex]; + physicalDevice = m_PhysicalDevices[physicalDeviceIndex]; // we must make any modifications locally, so the free of pointers // in the serialised VkDeviceCreateInfo don't double-free