kripken/emscripten — Issue #195: Require USE_TYPED_ARRAYS for OpenGL applications
Author: ehsan
Created: 2012-01-29 19:36:04+00:00
State: open

WebGL requires typed array support from browsers, so it might make sense to require USE_TYPED_ARRAYS for OpenGL apps which get converted into WebGL code.

One way to do this is when we get the WebGL context from a canvas in our SDL and GLUT implementations. We can #ifdef some code which would through a sensible error message when this happens if the code has been compiled without USE_TYPED_ARRAYS.

Do you think this makes sense?