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:
baldurk
2016-06-02 20:17:17 +02:00
parent 09760ffb7d
commit 5ba92b4dce
@@ -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())