TL;DR I ported GLFighters, a game written for Classic Mac OS in 2001, to WebAssembly! You can play it online at: devnonsense.com/GLFighters-SDL Table of contents Background Porting Strategy Linux Port Flipped textures Illegal instruction File loading Random SEGFAULT Sound sampling rate Z-Fighting Skybox seams Linux port working! WebAssembly Port Emscripten TGA files fail to load Page unresponsive Legacy OpenGL broken Slow motion Fixing texture loading Pink skybox textures Power-of-two texture...