diff --git a/librashader-runtime-d3d11/src/filter_pass.rs b/librashader-runtime-d3d11/src/filter_pass.rs index b11c787..2f62a3a 100644 --- a/librashader-runtime-d3d11/src/filter_pass.rs +++ b/librashader-runtime-d3d11/src/filter_pass.rs @@ -376,6 +376,12 @@ impl FilterPass { // must be under primitive topology trianglestrip with quad context.Draw(4, 0); } + + unsafe { + // unbind resources. + context.PSSetShaderResources(0, Some(&[None; 16])); + context.OMSetRenderTargets(None, None); + } Ok(()) } }