Fix CursorTrail corruption by resetting on load.

This commit is contained in:
Dean Herbert 2017-03-02 16:08:10 +09:00
parent b6e7e054c3
commit 8040d6a03f
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -32,7 +32,7 @@ namespace osu.Game.Graphics.Cursor
private double timeOffset;
private float time;
private TrailDrawNodeSharedData trailDrawNodeSharedData = new TrailDrawNodeSharedData();
private const int max_sprites = 2048;
@ -77,6 +77,12 @@ namespace osu.Game.Graphics.Cursor
Scale = new Vector2(1 / texture.ScaleAdjust);
}
protected override void LoadComplete()
{
base.LoadComplete();
resetTime();
}
protected override void Update()
{
base.Update();