I'm looking at using some of the emscripten_webgl_* calls in IMVU code ... but it imposes a pretty large size hit due to the JSEvents stuff.
All of the functions apart from emscripten_set_webglcontextlost_callback and emscripten_set_webglcontextrestored_callback could readily be moved to a separate library_webgl.js, except for the usage of JSEvents.findEventTarget in emscripten_webgl_create_context ... which could be duplicated or moved to some where else?