Open jsaak opened 8 years ago
compiling with -DSDL_DATA_ALIGNED=1 does work, but this is a workaround a proper fix is needed
Is this something that affects SDL2_net natively as well, or is this bug specific to the Emscripten port?
Emscripten port only i think
from SDL_net.h
/* Warning, some systems have data access alignment restrictions */
#if defined(sparc) || defined(mips) || defined(__arm__)
#define SDL_DATA_ALIGNED 1
#endif
#ifndef SDL_DATA_ALIGNED
#define SDL_DATA_ALIGNED 0
#endif
when not aligned, then they use invalid bytes