Fix crash in gpu memory profiler if resource name is missing

#2688
This commit is contained in:
Wojtek Figat
2024-06-05 17:14:44 +02:00
parent 116539ce34
commit 3b1a96582a

View File

@@ -145,6 +145,8 @@ namespace FlaxEditor.Windows.Profiler
#endif
Type = gpuResource.ResourceType,
};
if (resource.Name == null)
resource.Name = string.Empty;
// Create tooltip
sb.Clear();