mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Remove unintended string copies
This commit is contained in:
parent
cc5135959b
commit
df0a7ce17a
@ -2401,7 +2401,7 @@ void VulkanContext::command_begin_label(VkCommandBuffer p_command_buffer, String
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
CharString cs = p_label_name.utf8().get_data();
|
CharString cs = p_label_name.utf8();
|
||||||
VkDebugUtilsLabelEXT label;
|
VkDebugUtilsLabelEXT label;
|
||||||
label.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT;
|
label.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT;
|
||||||
label.pNext = nullptr;
|
label.pNext = nullptr;
|
||||||
@ -2417,7 +2417,7 @@ void VulkanContext::command_insert_label(VkCommandBuffer p_command_buffer, Strin
|
|||||||
if (!enabled_debug_utils) {
|
if (!enabled_debug_utils) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
CharString cs = p_label_name.utf8().get_data();
|
CharString cs = p_label_name.utf8();
|
||||||
VkDebugUtilsLabelEXT label;
|
VkDebugUtilsLabelEXT label;
|
||||||
label.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT;
|
label.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT;
|
||||||
label.pNext = nullptr;
|
label.pNext = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user