Update how to check if argument is canvas in getDataURL() of Texture
@@ -125,7 +125,7 @@ Object.assign( Texture.prototype, EventDispatcher.prototype, {
var canvas;
- if ( image.toDataURL !== undefined ) {
+ if ( image instanceof HTMLCanvasElement ) {
canvas = image;