diff --git a/src/webgldrawer.js b/src/webgldrawer.js index 03b43ea4..19de92cc 100644 --- a/src/webgldrawer.js +++ b/src/webgldrawer.js @@ -891,7 +891,7 @@ let position; if (!tiledImage.isTainted()) { - if((data instanceof CanvasRenderingContext2D) && $.isCanvasTainted(data)){ + if((data instanceof CanvasRenderingContext2D) && $.isCanvasTainted(data.canvas)){ tiledImage.setTainted(true); $.console.warn('WebGL cannot be used to draw this TiledImage because it has tainted data. Does crossOriginPolicy need to be set?'); this._raiseDrawerErrorEvent(tiledImage, 'Tainted data cannot be used by the WebGLDrawer. Falling back to CanvasDrawer for this TiledImage.');