Permalink
Browse files

CORS images work in Safari 5.2 pre-release.

Adjust the Webkit version in the imagery check.  Also add .DS_Store files to gitignore.
  • Loading branch information...
1 parent df50464 commit ac0f4c3d76390a19b70fa022f442d52311b6053c @shunter shunter committed May 22, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 Source/Core/FeatureDetection.js
View
@@ -2,3 +2,4 @@
/Build
/Instrumented
/Cesium-*.zip
+.DS_Store
@@ -92,7 +92,7 @@ define(function() {
*/
FeatureDetection.supportsCrossOriginImagery = function() {
if (typeof _supportsCrossOriginImagery === 'undefined') {
- if (isSafari() && webkitVersion()[0] < 537) {
+ if (isSafari() && webkitVersion()[0] < 536) {
// versions of Safari below this incorrectly throw a DOM error when calling
// readPixels on a canvas containing a cross-origin image.
_supportsCrossOriginImagery = false;

0 comments on commit ac0f4c3

Please sign in to comment.