This commit is contained in:
Alex Yatskov 2019-01-08 19:21:30 -08:00
parent 055c815406
commit 1aea67f7f0

View File

@ -122,9 +122,6 @@ func (s *scene) updateTexture() error {
} }
func main() { func main() {
platform.Initialize()
defer platform.Shutdown()
var ( var (
palettePath = flag.String("palette", "", "path to palette file") palettePath = flag.String("palette", "", "path to palette file")
) )
@ -142,6 +139,9 @@ func main() {
os.Exit(2) os.Exit(2)
} }
platform.Initialize()
defer platform.Shutdown()
animation, err := loadAnimation(flag.Arg(0)) animation, err := loadAnimation(flag.Arg(0))
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, err) fmt.Fprintln(os.Stderr, err)