Skip to content

Commit 499ead0

Browse files
committed
small vulkan logging fix
1 parent d659585 commit 499ead0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

include/nbl/video/debug/CVulkanDebugCallback.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ class NBL_API CVulkanDebugCallback : public IDebugCallback
4141
break;
4242
case VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT:
4343
level |= system::ILogger::ELL_ERROR;
44-
#if defined(_NBL_PLATFORM_WINDOWS_) && defined(_NBL_EG_OP_LNK)
45-
_NBL_EG_OP_LNK(level);
46-
_NBL_DEBUG_BREAK_IF(true);
47-
#endif
4844
break;
4945
default:
5046
assert(!"Don't know what to do with this value!");
@@ -67,6 +63,14 @@ class NBL_API CVulkanDebugCallback : public IDebugCallback
6763

6864
cb->getLogger()->log("%s", static_cast<system::ILogger::E_LOG_LEVEL>(level), callbackData->pMessage);
6965

66+
if (messageSeverity == VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT)
67+
{
68+
#if defined(_NBL_PLATFORM_WINDOWS_) && defined(_NBL_EG_OP_LNK)
69+
_NBL_EG_OP_LNK(level);
70+
_NBL_DEBUG_BREAK_IF(true);
71+
#endif
72+
}
73+
7074
return VK_FALSE;
7175
}
7276

0 commit comments

Comments
 (0)