mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-21 20:00:11 +00:00
Fixed bug with assert failure when JSON dump is created while a custom pool exist with specified string name
This commit is contained in:
parent
5b598e0a35
commit
2d2a9e3df3
@ -16006,8 +16006,8 @@ void VmaAllocator_T::PrintDetailedMap(VmaJsonWriter& json)
|
||||
json.ContinueString_Size(index++);
|
||||
if (pool->GetName())
|
||||
{
|
||||
json.WriteString(" - ");
|
||||
json.WriteString(pool->GetName());
|
||||
json.ContinueString(" - ");
|
||||
json.ContinueString(pool->GetName());
|
||||
}
|
||||
json.EndString();
|
||||
|
||||
|
@ -5175,6 +5175,11 @@ static void TestPool_SameSize()
|
||||
vmaGetPoolName(g_hAllocator, pool, &fetchedPoolName);
|
||||
TEST(strcmp(fetchedPoolName, POOL_NAME) == 0);
|
||||
|
||||
// Generate JSON dump. There was a bug with this...
|
||||
char* json = nullptr;
|
||||
vmaBuildStatsString(g_hAllocator, &json, VK_TRUE);
|
||||
vmaFreeStatsString(g_hAllocator, json);
|
||||
|
||||
vmaSetPoolName(g_hAllocator, pool, nullptr);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user