Merge pull request from chrisprice/img-cross-origin

Add crossOrigin attribute to imgs to prevent canvas tainted errors
This commit is contained in:
Tim Mickel 2014-09-05 15:11:24 -04:00
commit 1b96a42b69

View file

@ -140,7 +140,10 @@ Sprite.prototype.attach = function(scene) {
});
scene.append($(sprite.textures[c]));
})
.attr('src', io.asset_base + this.costumes[c].baseLayerMD5 + io.asset_suffix);
.attr({
'crossOrigin': 'anonymous',
'src': io.asset_base + this.costumes[c].baseLayerMD5 + io.asset_suffix
});
}
this.mesh = this.textures[this.currentCostumeIndex];