mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-25 01:39:23 +01:00
fixed textureregion not respecting layer depth
This commit is contained in:
parent
0010b94b59
commit
8e7ee0011e
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ namespace MLEM.Textures {
|
|||
}
|
||||
|
||||
public static void Draw(this SpriteBatch batch, TextureRegion texture, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth) {
|
||||
batch.Draw(texture, position, color, rotation, origin, new Vector2(scale), SpriteEffects.None, 0);
|
||||
batch.Draw(texture, position, color, rotation, origin, new Vector2(scale), SpriteEffects.None, layerDepth);
|
||||
}
|
||||
|
||||
public static void Draw(this SpriteBatch batch, TextureRegion texture, Rectangle destinationRectangle, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth) {
|
||||
|
|
Loading…
Reference in a new issue