on master help sign in
quick to change to MJS to get rid of webgl float array
commit7a7c23e707a90c0954340793c7601d3b7d454f19 authorJohn P Mayer Jr <john.p.mayer.jr@gmail.com> dateMon 20 Jan 2014, 14:18 (13 years ago) parent2c50fdd
1 file changed+2−6
libraries/Native/MJS.js+2−6
libraries/Native/MJS.js+2−6
@@ -58,10 +58,6 @@ Elm.Native.MJS.make = function(elm) {
5858 */
5959 const MJS_DO_ASSERT = true;
6060
61− // Some hacks for running in both the shell and browser,
62− // and for supporting F32 and WebGLFloat arrays
63− try { WebGLFloatArray; } catch (x) { WebGLFloatArray = Float32Array; }
64−
6561 /*
6662 * Constant: MJS_FLOAT_ARRAY_TYPE
6763 *
@@ -72,8 +68,8 @@ Elm.Native.MJS.make = function(elm) {
7268 * MJS_FLOAT_ARRAY_TYPE. Also, the builtin constants such as (M4x4.I)
7369 * will be of this type.
7470 */
75− const MJS_FLOAT_ARRAY_TYPE = WebGLFloatArray;
76− //const MJS_FLOAT_ARRAY_TYPE = Float32Array;
71+ //const MJS_FLOAT_ARRAY_TYPE = WebGLFloatArray;
72+ const MJS_FLOAT_ARRAY_TYPE = Float32Array;
7773 //const MJS_FLOAT_ARRAY_TYPE = Float64Array;
7874 //const MJS_FLOAT_ARRAY_TYPE = Array;
7975