@@ -58,10 +58,6 @@ Elm.Native.MJS.make = function(elm) {
59 const MJS_DO_ASSERT = true;
59 const MJS_DO_ASSERT = true;
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; }
66 * Constant: MJS_FLOAT_ARRAY_TYPE
62 * Constant: MJS_FLOAT_ARRAY_TYPE
@@ -72,8 +68,8 @@ Elm.Native.MJS.make = function(elm) {
72 * MJS_FLOAT_ARRAY_TYPE. Also, the builtin constants such as (M4x4.I)
68 * MJS_FLOAT_ARRAY_TYPE. Also, the builtin constants such as (M4x4.I)
73 * will be of this type.
69 * will be of this type.
75− const MJS_FLOAT_ARRAY_TYPE = WebGLFloatArray;
71+ //const MJS_FLOAT_ARRAY_TYPE = WebGLFloatArray;
76− //const MJS_FLOAT_ARRAY_TYPE = Float32Array;
72+ const MJS_FLOAT_ARRAY_TYPE = Float32Array;
77 //const MJS_FLOAT_ARRAY_TYPE = Float64Array;
73 //const MJS_FLOAT_ARRAY_TYPE = Float64Array;
78 //const MJS_FLOAT_ARRAY_TYPE = Array;
74 //const MJS_FLOAT_ARRAY_TYPE = Array;