From 039ffbd37a5ec949a5d9f1dae168a40caceb8155 Mon Sep 17 00:00:00 2001 From: Aiosa <469130@mail.muni.cz> Date: Wed, 4 Dec 2024 09:16:04 +0100 Subject: [PATCH] Fix typo --- src/webgldrawer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.');