1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-24 17:29:23 +01:00

redid that bugfix that I undid with that other bugfix

This commit is contained in:
Ellpeck 2019-12-28 12:59:14 +01:00
parent 7e887031de
commit b53588c32e

View file

@ -144,8 +144,8 @@ namespace MLEM.Ui.Elements {
}
public override void DrawEarly(GameTime time, SpriteBatch batch, float alpha, BlendState blendState, SamplerState samplerState, Matrix matrix) {
this.UpdateAreaIfDirty();
if (this.scrollOverflow && this.renderTarget != null) {
this.UpdateAreaIfDirty();
// draw children onto the render target
batch.GraphicsDevice.SetRenderTarget(this.renderTarget);
batch.GraphicsDevice.Clear(Color.Transparent);