I'm using these flags to build:
-s FETCH=1 -s LEGACY_GL_EMULATION=1 -s GL_FFP_ONLY=1 -Wno-nonportable-include-path -Wno-comment -Wno-write-strings --std=c++0x -s USE_SDL=2 -s USE_LIBPNG=1 -s USE_OGG=1 -s USE_VORBIS=1 -s FORCE_FILESYSTEM=1 -s EXPORT_ALL=1 -s LINKABLE=1 -lopenal -fsigned-char -lidbfs.js -ferror-limit=1 -s USE_PTHREADS=0 -s ALLOW_MEMORY_GROWTH=1 -s WASM=1
If I compile my program with FETCH=0, everything runs normally. But I want to use fetch!
When I use FETCH=1, even if I comment out all the fetch dependencies I get this exception on startup:
Uncaught RuntimeError: abort(-1) at Error
Again, putting FETCH=0 makes it breeze through this. Is there some kind of incompatibility between Fetch, SDL2, and legacy OpenGL?