d3d11: unbind resources when done
This commit is contained in:
parent
60fd644a2a
commit
812580e0b9
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue