trying some shader stuff, but segfaults

This commit is contained in:
2024-05-10 21:47:57 -04:00
parent 293a814ad3
commit c5e45ef31a
7 changed files with 261 additions and 11 deletions

View File

@ -32,7 +32,7 @@ EMS =
##---------------------------------------------------------------------
# ("EMS" options gets added to both CPPFLAGS and LDFLAGS, whereas some options are for linker only)
EMS += -s USE_SDL=2 -flto -O2
EMS += -s USE_SDL=2 -flto -O2 -s USE_WEBGL2=1
EMS += -s DISABLE_EXCEPTION_CATCHING=1
LDFLAGS += -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s NO_EXIT_RUNTIME=0 -s ASSERTIONS=1 -sEXPORTED_FUNCTIONS=[_main,_malloc,_free] -sEXPORTED_RUNTIME_METHODS=[ccall]