1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-06-04 22:23:37 +02:00

fixed panels drawing children early within the render target

This commit is contained in:
Ell 2021-06-07 23:14:50 +02:00
parent d1fbcb9559
commit ed02a83879

View file

@ -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);
}
/// <inheritdoc />