Fix crash in GPU Memory profiler if resource went null
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user