mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-25 22:18:34 +01:00
fixed panels drawing children early within the render target
This commit is contained in:
parent
d1fbcb9559
commit
ed02a83879
1 changed files with 1 additions and 4 deletions
|
@ -178,13 +178,10 @@ namespace MLEM.Ui.Elements {
|
||||||
batch.Begin(SpriteSortMode.Deferred, blendState, samplerState, null, null, null, trans);
|
batch.Begin(SpriteSortMode.Deferred, blendState, samplerState, null, null, null, trans);
|
||||||
base.Draw(time, batch, alpha, blendState, samplerState, trans);
|
base.Draw(time, batch, alpha, blendState, samplerState, trans);
|
||||||
batch.End();
|
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 />
|
/// <inheritdoc />
|
||||||
public override Element GetElementUnderPos(Vector2 position) {
|
public override Element GetElementUnderPos(Vector2 position) {
|
||||||
|
|
Loading…
Reference in a new issue