1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 20:58:34 +01:00

turns out setting a null render target also just sets a null array

This commit is contained in:
Ellpeck 2020-04-03 00:59:27 +02:00
parent cc06b827ff
commit f57031a9db

View file

@ -55,11 +55,7 @@ namespace MLEM.Extensions {
} }
public void Dispose() { public void Dispose() {
if (this.lastTargets != null) {
this.device.SetRenderTargets(this.lastTargets); this.device.SetRenderTargets(this.lastTargets);
} else {
this.device.SetRenderTarget(null);
}
} }
} }