Permalink
Browse files

Changes based on review

  • Loading branch information...
1 parent 358e64b commit d7d46916d5dc52f329e209cb23704b3f8b81dfa4 @pjcozzi pjcozzi committed Feb 6, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/Renderer/ShaderProgram.js
@@ -1245,9 +1245,9 @@ define([
}
}
- var scratchUniformMatrix2 = new Float32Array(4);
- var scratchUniformMatrix3 = new Float32Array(9);
- var scratchUniformMatrix4 = new Float32Array(16);
+ var scratchUniformMatrix2 = (typeof Float32Array !== 'undefined') ? new Float32Array(4) : undefined;
+ var scratchUniformMatrix3 = (typeof Float32Array !== 'undefined') ? new Float32Array(9) : undefined;
+ var scratchUniformMatrix4 = (typeof Float32Array !== 'undefined') ? new Float32Array(16) : undefined;
/**
* A shader program's uniform, including the uniform's value. This is most commonly used to change

0 comments on commit d7d4691

Please sign in to comment.