From b85afccaf5cfa8d703b60669aaa893b5efd3835f Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 8 Sep 2019 21:32:48 +0200 Subject: [PATCH] fixed the panel passing a wrong matrix to its children --- MLEM.Ui/Elements/Panel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM.Ui/Elements/Panel.cs b/MLEM.Ui/Elements/Panel.cs index fe02b78..92df8b5 100644 --- a/MLEM.Ui/Elements/Panel.cs +++ b/MLEM.Ui/Elements/Panel.cs @@ -116,7 +116,7 @@ namespace MLEM.Ui.Elements { base.Draw(time, batch, alpha); batch.End(); // also draw any children early within the render target with the translation applied - base.DrawEarly(time, batch, alpha, blendState, samplerState, matrix * trans); + base.DrawEarly(time, batch, alpha, blendState, samplerState, trans); batch.GraphicsDevice.SetRenderTarget(null); } else { base.DrawEarly(time, batch, alpha, blendState, samplerState, matrix);