mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
6e968558b1
Some functions like ebiten.SetCursorMode use `running` to detect whether the game starts or not. If the game starts, the main thread must exist, but there was a timing when `running` was true but the main thread didn't exist. This change fixes this issue by changing the timing to call `setRunning(true)` after the main thread initialization and before `initOnMainThread`. `initOnMainThread` assumes that `running` is true. Closes #2742 |
||
---|---|---|
.. | ||
testdata | ||
processtest_test.go |