Fix crash in GPU Memory profiler if resource went null

This commit is contained in:
Wojtek Figat
2025-06-12 17:35:02 +02:00
parent bdc87c7bc6
commit eadb4411ff

View File

@@ -146,6 +146,8 @@ namespace FlaxEditor.Windows.Profiler
{
var gpuResource = _gpuResourcesCached[i];
ref var resource = ref resources[i];
if (!gpuResource)
continue;
// Try to reuse cached resource info
var gpuResourceId = gpuResource.ID;