aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index a4263dc6..f4b22097 100755
--- a/emcc
+++ b/emcc
@@ -899,7 +899,7 @@ try:
canvas.height = img.height;
var ctx = canvas.getContext('2d');
ctx.drawImage(img, 0, 0);
- preloadedImages['%(filename)s'] = ctx.getImageData(0, 0, canvas.width, canvas.height);
+ preloadedImages['%(filename)s'] = canvas;
window.URL.revokeObjectURL(url);
removeRunDependency();
};