diff options
author | ToadKing <toadking@toadking.com> | 2013-08-12 23:30:49 -0400 |
---|---|---|
committer | ToadKing <toadking@toadking.com> | 2013-08-12 23:30:49 -0400 |
commit | 7466223864929d50d02407dde1da331133a0bef1 (patch) | |
tree | 60403b8061880e6aea503a20d9c45b3e678ec6ad /src/preamble.js | |
parent | c2b064eb49ea63eec59add5751c8a9c2b80dab92 (diff) | |
parent | 3090cdd713609a9d3f749d13002a898e03cbd5e3 (diff) |
Merge branch 'incoming' of https://github.com/kripken/emscripten into fixed_openal_buffers
Conflicts:
src/library_openal.js
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 95bf2dc2..0f3f52c9 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -853,6 +853,13 @@ Math['imul'] = function(a, b) { #endif Math.imul = Math['imul']; +#if TO_FLOAT32 +if (!Math['toFloat32']) Math['toFloat32'] = function(x) { + return x; +}; +Math.toFloat32 = Math['toFloat32']; +#endif + // A counter of dependencies for calling run(). If we need to // do asynchronous work before running, increment this and // decrement it. Incrementing must happen in a place like |