mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-10 06:11:36 +00:00
Don't create aliasing fake physical devices
This commit is contained in:
1 parent
add4b44283
commit
d4b4355b89
1 file changed
+3
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user