d3d11: unbind resources when done

This commit is contained in:
chyyran 2022-11-29 02:13:50 -05:00
parent 60fd644a2a
commit 812580e0b9

View file

@ -376,6 +376,12 @@ impl FilterPass {
// must be under primitive topology trianglestrip with quad // must be under primitive topology trianglestrip with quad
context.Draw(4, 0); context.Draw(4, 0);
} }
unsafe {
// unbind resources.
context.PSSetShaderResources(0, Some(&[None; 16]));
context.OMSetRenderTargets(None, None);
}
Ok(()) Ok(())
} }
} }