1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-31 20:33:38 +02:00

fixed the panel passing a wrong matrix to its children

This commit is contained in:
Ellpeck 2019-09-08 21:32:48 +02:00
parent b87bb01a80
commit b85afccaf5

View file

@ -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);