mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-07 15:20:58 +00:00
Make sure we have enough entries in the original physical device list
This commit is contained in:
@@ -568,6 +568,9 @@ bool WrappedVulkan::Serialise_vkEnumeratePhysicalDevices(Serialiser *localSerial
|
||||
capturedVersion.Major(), capturedVersion.Minor(), capturedVersion.Patch(),
|
||||
physProps.vendorID, physProps.deviceID);
|
||||
|
||||
if(physIndex >= m_OriginalPhysicalDevices.size())
|
||||
m_OriginalPhysicalDevices.resize(physIndex + 1);
|
||||
|
||||
m_OriginalPhysicalDevices[physIndex].props = physProps;
|
||||
m_OriginalPhysicalDevices[physIndex].memProps = memProps;
|
||||
m_OriginalPhysicalDevices[physIndex].features = physFeatures;
|
||||
|
||||
Reference in New Issue
Block a user