on master help sign in
quick to change to MJS to get rid of webgl float array
7a7c23eJohn P Mayer Jr
libraries/Native/MJS.js+2−6
@@ -58,10 +58,6 @@ Elm.Native.MJS.make = function(elm) {
58 */
58 */
59 const MJS_DO_ASSERT = true;
59 const MJS_DO_ASSERT = true;
60
60
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−
65 /*
61 /*
66 * Constant: MJS_FLOAT_ARRAY_TYPE
62 * Constant: MJS_FLOAT_ARRAY_TYPE
67 *
63 *
@@ -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.
74 */
70 */
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;
79
75