FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #211 from aunzat/no-typed-arrays · JavaScriptIOT/gl-matrix@33045e8 · GitHub

Commit 33045e8

Browse files
committed
Merge pull request toji#211 from aunzat/no-typed-arrays
Prevent Float32Array undefined error on missing typed array support.
2 parents 7edc484 + e91cb61 commit 33045e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/gl-matrix/common.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ glMatrix.RANDOM = Math.random;
3131
glMatrix.ENABLE_SIMD = false;
3232

3333
// Capability detection
34-
glMatrix.SIMD_AVAILABLE = (glMatrix.ARRAY_TYPE === Float32Array) && ('SIMD' in this);
34+
glMatrix.SIMD_AVAILABLE = (glMatrix.ARRAY_TYPE === this.Float32Array) && ('SIMD' in this);
3535
glMatrix.USE_SIMD = glMatrix.ENABLE_SIMD && glMatrix.SIMD_AVAILABLE;
3636

3737
/**

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL