What steps will reproduce the problem? 1. Load webgl-mjs in Safari 5. 2. See in console that "Float32Array is undefined"
What is the expected output? What do you see instead? I would expect a fallback to standard arrays.
What version of the product are you using? On what operating system? Safari 5, OS X 10.6.4
Please provide any additional information below. Obviously the tagline of this is "optimized for WebGL", so I understand if it's not supposed to work in a browser that doesn't support WebGL, but the docs (and even the code) seem to suggest that it should fall back to standard JS arrays. Looking at the code, line 66-69 suggests that we (the user) are supposed to uncomment the type of array to use? Even uncommenting the line to enable arrays still fails, since Float32Array is undefined.
Comment #1
Posted on Jun 19, 2010 by Massive MonkeyI also want to mention that the same issue exists on Firefox 3.6.3, but not Firefox 3.7a.
Comment #2
Posted on Jun 25, 2010 by Massive MonkeyA quick fix for this, replace the try/catch at line 54 with:
try { WebGLFloatArray; } catch (x) { try { WebGLFloatArray = Float32Array; } catch(x){ WebGLFloatArray = Array; }
}
Status: New
Labels:
Type-Defect
Priority-Medium