Please see this bug for details: emscripten-core/emscripten#20798
tl;dr:
- Emscripten exposes the GL_EXTENSIONS directly from WebGL.
- Emscripten does not implement glClipControlEXT or glPolygonOffsetClampEXT.
- Browser ships EXT_clip_control or EXT_polygon_offset_clamp.
- Existing pages on the Web that were compiled using Emscripten, from C/C++ code that supported these extensions (like Filament), start crashing
I have a few ideas about this but my suggestion on that bug is for the WebGL group to simply not ship new EXT_ extensions that add new functions, and instead rebrand them as WEBGL_.