diff --git a/src/dawn_native/d3d12/AdapterD3D12.cpp b/src/dawn_native/d3d12/AdapterD3D12.cpp index 0fe3714fd7..1455d12938 100644 --- a/src/dawn_native/d3d12/AdapterD3D12.cpp +++ b/src/dawn_native/d3d12/AdapterD3D12.cpp @@ -191,8 +191,13 @@ namespace dawn_native { namespace d3d12 { if (!GetInstance()->IsBackendValidationEnabled()) { return; } + + // If the debug layer is not installed, return immediately to avoid crashing the process. ComPtr infoQueue; - ASSERT_SUCCESS(mD3d12Device.As(&infoQueue)); + if (FAILED(mD3d12Device.As(&infoQueue))) { + return; + } + infoQueue->PopRetrievalFilter(); infoQueue->PopStorageFilter(); }