mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +01:00
turns out setting a null render target also just sets a null array
This commit is contained in:
parent
cc06b827ff
commit
f57031a9db
1 changed files with 1 additions and 5 deletions
|
@ -55,11 +55,7 @@ namespace MLEM.Extensions {
|
|||
}
|
||||
|
||||
public void Dispose() {
|
||||
if (this.lastTargets != null) {
|
||||
this.device.SetRenderTargets(this.lastTargets);
|
||||
} else {
|
||||
this.device.SetRenderTarget(null);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue