-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Trying to use the PixelMap functionality in chrome, but it seems to have issues loading the content (something to do with it using a canvas internally to store/modify the image?). The below code works with no issues in firefox 18
code looks like so:
jaws.setup = function()
{
[...]
pixelmap = new jaws.PixelMap({image: "skyline.png", scale_image: 1})
[...]
}
jaws.onload = function()
{
[...]
jaws.assets.add("skyline.png")
[...]
}
stacktrace is below:
Unable to get image data from canvas because the canvas has been tainted by cross-origin data. jaws.js:677
jaws.retroScaleImage jaws.js:677
PixelMap jaws.js:2969
Example3.setup ds.js:9
GameLoop.start jaws.js:1591
jaws.switchGameState jaws.js:404
assetsLoaded jaws.js:348
processCallbacks jaws.js:1453
assetLoaded jaws.js:1400
Uncaught Error: SecurityError: DOM Exception 18 jaws.js:677
jaws.retroScaleImage jaws.js:677
PixelMap jaws.js:2969
Example3.setup ds.js:9
GameLoop.start jaws.js:1591
jaws.switchGameState jaws.js:404
assetsLoaded jaws.js:348
processCallbacks jaws.js:1453
assetLoaded jaws.js:1400
Metadata
Metadata
Assignees
Labels
No labels