mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
examples/audio: Bug fix: Do not close after Run
Now Run can return immediately on GopherJS. In general, graceful shutdown should not be expected since there is no 'end' phase on some environments. Fixes #784
This commit is contained in:
parent
ea29637fda
commit
5a612f60b6
@ -247,7 +247,4 @@ func main() {
|
|||||||
if err := ebiten.Run(update, screenWidth, screenHeight, 2, "Audio (Ebiten Demo)"); err != nil {
|
if err := ebiten.Run(update, screenWidth, screenHeight, 2, "Audio (Ebiten Demo)"); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
if err := musicPlayer.close(); err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user