kripken/emscripten — pull request #2810 by ricochet (2014-09-19 20:01:28+00:00)
Title: Handle no current context when rendering in a main_loop

When rendering in the main loop and with FULL_ES2=1, I was getting the following exception in GL.newRenderingFrameStarted():

Uncaught TypeError: Cannot set property '0' of undefined

The cause is that GL.newRenderingFrameStarted() assumes there is a currentContext.