Fix "The Vulkan spec states" not getting muted
This commit is contained in:
parent
9faeec214b
commit
4362a85bbe
1 changed files with 4 additions and 1 deletions
|
|
@ -351,10 +351,13 @@ VkBool32 VulkanInstance::DebugCallback(VkDebugUtilsMessageSeverityFlagBitsEXT me
|
|||
if (parts.size() == 3)
|
||||
{
|
||||
msg = parts[2];
|
||||
size_t pos = msg.find(" The Vulkan spec states:");
|
||||
size_t pos = msg.find("The Vulkan spec states:");
|
||||
if (pos != std::string::npos)
|
||||
msg = msg.substr(0, pos);
|
||||
|
||||
while (!msg.empty() && (msg.back() == '\n' || msg.back() == '\r' || msg.back() == ' '))
|
||||
msg.pop_back();
|
||||
|
||||
if (callbackData->objectCount > 0)
|
||||
{
|
||||
msg += " (";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue