mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +00:00
Minor fixes.
This commit is contained in:
parent
deeb817d7a
commit
f188a152de
@ -720,20 +720,19 @@ void Player::ExecuteCreatePool(size_t lineNumber, const CsvSplit& csvSplit)
|
|||||||
{
|
{
|
||||||
Pool poolDesc = {};
|
Pool poolDesc = {};
|
||||||
VkResult res = vmaCreatePool(m_Allocator, &poolCreateInfo, &poolDesc.pool);
|
VkResult res = vmaCreatePool(m_Allocator, &poolCreateInfo, &poolDesc.pool);
|
||||||
if(res == VK_SUCCESS)
|
if(res != VK_SUCCESS)
|
||||||
{
|
|
||||||
const auto existingIt = m_Pools.find(origPtr);
|
|
||||||
if(existingIt != m_Pools.end())
|
|
||||||
{
|
|
||||||
if(IssueWarning())
|
|
||||||
printf("Line %zu: Pool %llX already exists.\n", lineNumber, origPtr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if(IssueWarning())
|
if(IssueWarning())
|
||||||
printf("Line %zu: vmaCreatePool failed (%u).\n", lineNumber, res);
|
printf("Line %zu: vmaCreatePool failed (%u).\n", lineNumber, res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const auto existingIt = m_Pools.find(origPtr);
|
||||||
|
if(existingIt != m_Pools.end())
|
||||||
|
{
|
||||||
|
if(IssueWarning())
|
||||||
|
printf("Line %zu: Pool %llX already exists.\n", lineNumber, origPtr);
|
||||||
|
}
|
||||||
|
|
||||||
m_Pools[origPtr] = poolDesc;
|
m_Pools[origPtr] = poolDesc;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1034,7 +1033,7 @@ int main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
main2(argc, argv);
|
return main2(argc, argv);
|
||||||
}
|
}
|
||||||
catch(const std::exception& e)
|
catch(const std::exception& e)
|
||||||
{
|
{
|
||||||
@ -1046,6 +1045,4 @@ int main(int argc, char** argv)
|
|||||||
printf("UNKNOWN ERROR\n");
|
printf("UNKNOWN ERROR\n");
|
||||||
return RESULT_EXCEPTION;
|
return RESULT_EXCEPTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user