From 20ca12078f38bb39d04fade69f917a2f37eea163 Mon Sep 17 00:00:00 2001 From: Takahiro Date: Mon, 14 Aug 2017 16:07:59 +0900 Subject: [PATCH] Replace checking if image has to DataURL with checking if image is instanceof HTMLCanvasElement in getDataURL() of Texture --- src/textures/Texture.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/Texture.js b/src/textures/Texture.js index aede83061b..5af3471aa2 100644 --- a/src/textures/Texture.js +++ b/src/textures/Texture.js @@ -125,7 +125,7 @@ Object.assign( Texture.prototype, EventDispatcher.prototype, { var canvas; - if ( image.toDataURL !== undefined ) { + if ( image instanceof HTMLCanvasElement ) { canvas = image; -- GitLab