1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-26 10:19:22 +01:00

mark panel's relevant children dirty when the render target changes

This commit is contained in:
Ell 2021-11-05 23:28:32 +01:00
parent 543201d178
commit 778d416774

View file

@ -235,6 +235,7 @@ namespace MLEM.Ui.Elements {
if (this.renderTarget != null)
this.renderTarget.Dispose();
this.renderTarget = targetArea.IsEmpty ? null : new RenderTarget2D(this.System.Game.GraphicsDevice, targetArea.Width, targetArea.Height);
this.relevantChildrenDirty = true;
}
}