Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions source_common/framework/manual_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,10 @@ VKAPI_ATTR VkResult VKAPI_CALL layer_vkCreateInstance<default_tag>(const VkInsta
LAYER_LOG("Requested instance extension list: [%u] = %s", i, newCreateInfo->ppEnabledExtensionNames[i]);
}

// Get the new chain info so we modify our safe copy, not the original
chainInfo = getChainInfo(newCreateInfo);

// Advance the link info for the next element on the chain
chainInfo->u.pLayerInfo = chainInfo->u.pLayerInfo->pNext;
auto result = fpCreateInstance(newCreateInfo, pAllocator, pInstance);
if (result != VK_SUCCESS)
Expand Down Expand Up @@ -874,6 +878,9 @@ VKAPI_ATTR VkResult VKAPI_CALL layer_vkCreateDevice<default_tag>(VkPhysicalDevic
return VK_ERROR_INITIALIZATION_FAILED;
}

// Get the new chain info so we modify our safe copy, not the original
chainInfo = getChainInfo(newCreateInfo);

// Advance the link info for the next element on the chain
chainInfo->u.pLayerInfo = chainInfo->u.pLayerInfo->pNext;
auto res = fpCreateDevice(physicalDevice, newCreateInfo, pAllocator, pDevice);
Expand Down