From ed02a838794ce42c4d22472b6b071698b16c7aa5 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 7 Jun 2021 23:14:50 +0200 Subject: [PATCH] fixed panels drawing children early within the render target --- MLEM.Ui/Elements/Panel.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MLEM.Ui/Elements/Panel.cs b/MLEM.Ui/Elements/Panel.cs index 101444f..d5f0dcb 100644 --- a/MLEM.Ui/Elements/Panel.cs +++ b/MLEM.Ui/Elements/Panel.cs @@ -178,12 +178,9 @@ namespace MLEM.Ui.Elements { batch.Begin(SpriteSortMode.Deferred, blendState, samplerState, null, null, null, trans); base.Draw(time, batch, alpha, blendState, samplerState, trans); batch.End(); - // also draw any children early within the render target with the translation applied - base.DrawEarly(time, batch, alpha, blendState, samplerState, trans); } - } else { - base.DrawEarly(time, batch, alpha, blendState, samplerState, matrix); } + base.DrawEarly(time, batch, alpha, blendState, samplerState, matrix); } ///