good-web-game: The `snake` example segfaults
cargo run --example snake causes a segmentation fault.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (3 by maintainers)
cargo run --example snake causes a segmentation fault.
I also reproduce this crash on my laptops. Windows 10.
astroblasto works, snake is crashed. But when I comment drawing of actors and one line of text (score or level) in astroblasto example, it also crashes.
Minimal case for crash on my machine:
I investigate the difference between OpenGL calls made from ggez and from good-web-game (I used CodeXL for that), and noticed that ggez made a call to glDeleteBuffers immediately after SwapBuffers, but good-web-game did it right after DrawElementsInstanced. I think this can be reason of crash.