mirror of
https://github.com/godotengine/godot
synced 2024-09-05 00:23:40 +00:00
Merge pull request #45476 from qarmin/add_temp_variable
Add temporary variable to not use freed memory
This commit is contained in:
commit
96bcaadbf2
|
@ -1632,7 +1632,8 @@ void VulkanContext::set_object_name(VkObjectType p_object_type, uint64_t p_objec
|
|||
name_info.pNext = nullptr;
|
||||
name_info.objectType = p_object_type;
|
||||
name_info.objectHandle = p_object_handle;
|
||||
name_info.pObjectName = p_object_name.utf8().get_data();
|
||||
CharString object_name = p_object_name.utf8();
|
||||
name_info.pObjectName = object_name.get_data();
|
||||
SetDebugUtilsObjectNameEXT(device, &name_info);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue