File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,6 @@ class NBL_API CVulkanDebugCallback : public IDebugCallback
41
41
break ;
42
42
case VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT:
43
43
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
48
44
break ;
49
45
default :
50
46
assert (!" Don't know what to do with this value!" );
@@ -67,6 +63,14 @@ class NBL_API CVulkanDebugCallback : public IDebugCallback
67
63
68
64
cb->getLogger ()->log (" %s" , static_cast <system::ILogger::E_LOG_LEVEL>(level), callbackData->pMessage );
69
65
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
+
70
74
return VK_FALSE;
71
75
}
72
76
You can’t perform that action at this time.
0 commit comments