mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
6016c934f5
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 |