1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-25 09:49:23 +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() {
if (this.lastTargets != null) {
this.device.SetRenderTargets(this.lastTargets);
} else {
this.device.SetRenderTarget(null);
}
this.device.SetRenderTargets(this.lastTargets);
}
}