Running from another go routine (systray)? glfw: DestroyWindow failed: Access is denied. #3156
-
I am doing something similar to the mascot example in the repo, but I want to be able to control the ebiten app window (create and destroy cycles) with a systray icon app. I can create everything in the goroutine just fine, but when closing the window (by returning an I tried using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
There is a restriction that |
Beta Was this translation helpful? Give feedback.
There is a restriction that
RunGame
must be called from the main goroutine: https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2#RunGame Were you trying to call this from different goroutines?