mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Allow a capture to replay if it has more physical devices than replay
* This will still fail if the physical devices are used, but if they're not this allows a bit more capture portability between machines.
This commit is contained in:
@@ -427,7 +427,14 @@ bool WrappedVulkan::Serialise_vkEnumeratePhysicalDevices(Serialiser *localSerial
|
||||
VkResult vkr = ObjDisp(instance)->EnumeratePhysicalDevices(Unwrap(instance), &count, NULL);
|
||||
RDCASSERTEQUAL(vkr, VK_SUCCESS);
|
||||
|
||||
RDCASSERT(count > physIndex);
|
||||
if(count <= physIndex)
|
||||
{
|
||||
RDCERR(
|
||||
"Capture had more physical devices than available on replay! This will lead to a crash "
|
||||
"if they are used.");
|
||||
return true;
|
||||
}
|
||||
|
||||
devices = new VkPhysicalDevice[count];
|
||||
|
||||
if(physIndex >= m_PhysicalDevices.size())
|
||||
|
||||
Reference in New Issue
Block a user