Don't create aliasing fake physical devices

This commit is contained in:
baldurk
2018-06-13 16:16:07 +01:00
parent add4b44283
commit d4b4355b89
@@ -46,8 +46,9 @@ static VkApplicationInfo renderdocAppInfo = {
// code expect to copy it into a wrapped object
static VkPhysicalDevice MakePhysicalDeviceHandleFromIndex(uint32_t physDeviceIndex)
{
static uintptr_t loaderTable(0x100 + physDeviceIndex);
return VkPhysicalDevice(&loaderTable);
static uintptr_t loaderTable[32];
loaderTable[physDeviceIndex] = (0x100 + physDeviceIndex);
return VkPhysicalDevice(&loaderTable[physDeviceIndex]);
}
static uint32_t GetPhysicalDeviceIndexFromHandle(VkPhysicalDevice physicalDevice)