diff --git a/src/dawn_native/d3d12/DeviceD3D12.cpp b/src/dawn_native/d3d12/DeviceD3D12.cpp index c199bcee54..295548e701 100644 --- a/src/dawn_native/d3d12/DeviceD3D12.cpp +++ b/src/dawn_native/d3d12/DeviceD3D12.cpp @@ -571,7 +571,9 @@ namespace dawn_native { namespace d3d12 { } // Release recycled resource heaps. - mResourceAllocatorManager->DestroyPool(); + if (mResourceAllocatorManager != nullptr) { + mResourceAllocatorManager->DestroyPool(); + } // We need to handle clearing up com object refs that were enqeued after TickImpl mUsedComObjectRefs.ClearUpTo(std::numeric_limits::max());