diff --git a/src/dawn/native/d3d12/TextureD3D12.cpp b/src/dawn/native/d3d12/TextureD3D12.cpp index ae79a1bb39..78b267600d 100644 --- a/src/dawn/native/d3d12/TextureD3D12.cpp +++ b/src/dawn/native/d3d12/TextureD3D12.cpp @@ -667,6 +667,10 @@ namespace dawn::native::d3d12 { // We can set mSwapChainTexture to false to avoid passing a nullptr to // ID3D12SharingContract::Present. mSwapChainTexture = false; + + // Now that the texture has been destroyed. It should release the refptr + // of the d3d11on12 resource. + mD3D11on12Resource = nullptr; } DXGI_FORMAT Texture::GetD3D12Format() const {