MacOS build fix

This commit is contained in:
2023-11-23 20:25:49 -08:00
parent f59d3a5539
commit 03f76ff8b8

View File

@@ -171,7 +171,7 @@ bool KRShader::createShaderModule(VkDevice& device, VkShaderModule& module)
#if KRENGINE_DEBUG_GPU_LABELS
if (success) {
std::string& name = getName();
const std::string& name = getName();
VkDebugUtilsObjectNameInfoEXT debugInfo{};
debugInfo.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT;
debugInfo.objectHandle = (uint64_t)module;