diff --git a/src/dawn_native/d3d12/DeviceD3D12.cpp b/src/dawn_native/d3d12/DeviceD3D12.cpp index e9fdf874c0..efa383755c 100644 --- a/src/dawn_native/d3d12/DeviceD3D12.cpp +++ b/src/dawn_native/d3d12/DeviceD3D12.cpp @@ -416,6 +416,9 @@ namespace dawn_native { namespace d3d12 { } MaybeError Device::WaitForIdleForDestruction() { + // Immediately forget about all pending commands + mPendingCommands.Release(); + DAWN_TRY(NextSerial()); // Wait for all in-flight commands to finish executing DAWN_TRY(WaitForSerial(mLastSubmittedSerial));