osukey/osu.Game
Bartłomiej Dach 718cbf9382
Fix SegmentedGraph draw node calculating segment colours in unsafe manner
The `SegmentedGraph`'s draw node would call `getSegmentColour()`
on the drawable, which would query the `DrawColourInfo` and
`tierColours` properties of the drawable. This is a cross-thread access
and as such completely unsafe, as due to being cross-thread it can die
on invalidations or out-of-bounds accesses.

Fix by transferring everything to the draw node first before attempting
to draw. `SegmentedGraph.TierColours` setter already correctly
invalidates the draw node via `graphNeedsUpdate`, so no further
intervention was required there.

Closes #22326.
2023-01-21 23:19:34 +01:00
..
2022-11-27 00:00:27 +09:00
2022-11-27 00:00:27 +09:00
2022-12-29 22:35:13 +08:00
2022-11-27 00:00:27 +09:00
2022-11-27 00:00:27 +09:00
2023-01-14 01:12:17 +03:00
2023-01-20 23:23:25 +09:00
2022-11-27 00:00:27 +09:00