Skip to content

Commit

Permalink
[Vk] use LML_CRITICAL for errors detected by validation layer
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegff committed Sep 23, 2024
1 parent bf93995 commit 425e222
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ namespace Ogre
sprintf(message, "INFORMATION: [%s] Code %d : %s", pLayerPrefix, msgCode, pMsg);
}

LogManager::getSingleton().logMessage( message );
LogManager::getSingleton().logMessage( message,
msgFlags & VK_DEBUG_REPORT_ERROR_BIT_EXT ? LML_CRITICAL : LML_NORMAL );

free(message);

Expand Down

0 comments on commit 425e222

Please sign in to comment.