1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 20:44:48 +08:00

Merge pull request #2277 from smoogipoo/batch-action-caching

Use cached VertexBuffer add delegate
This commit is contained in:
Dean Herbert
2018-03-22 15:29:30 +09:00
committed by GitHub
Unverified
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ namespace osu.Game.Graphics.Backgrounds
triangle,
colourInfo,
null,
Shared.VertexBatch.Add,
Shared.VertexBatch.AddAction,
Vector2.Divide(localInflationAmount, size));
}
+1 -1
View File
@@ -211,7 +211,7 @@ namespace osu.Game.Screens.Menu
rectangle,
colourInfo,
null,
Shared.VertexBatch.Add,
Shared.VertexBatch.AddAction,
//barSize by itself will make it smooth more in the X axis than in the Y axis, this reverts that.
Vector2.Divide(inflation, barSize.Yx));
}