diff options
| author | Water Chika <water_chika@outlook.com> | 2023-07-26 11:13:32 +0000 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2023-08-02 10:20:03 -0600 |
| commit | b8f2f1406ef3e7b9a2e01edaaaf62d82eef1eb00 (patch) | |
| tree | dc4df5047f8ec2f595ae20256364131e27449d05 /cube/cube.cpp | |
| parent | adf8532bc503066a9c4cf8ea30cc0f8217044f0f (diff) | |
| download | usermoji-b8f2f1406ef3e7b9a2e01edaaaf62d82eef1eb00.tar.xz | |
pMessageIdName maybe NULL.
Diffstat (limited to 'cube/cube.cpp')
| -rw-r--r-- | cube/cube.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp index 1e7d48cf..f7ddaf75 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -1051,7 +1051,8 @@ VKAPI_ATTR VkBool32 VKAPI_CALL Demo::debug_messenger_callback(VkDebugUtilsMessag } message << " - Message Id Number: " << std::to_string(pCallbackData->messageIdNumber); - message << " | Message Id Name: " << pCallbackData->pMessageIdName << "\n\t" << pCallbackData->pMessage << "\n"; + message << " | Message Id Name: " << (pCallbackData->pMessageIdName == nullptr ? "" : pCallbackData->pMessageIdName) << "\n\t" + << pCallbackData->pMessage << "\n"; if (pCallbackData->objectCount > 0) { message << "\n\tObjects - " << pCallbackData->objectCount << "\n"; |
