提交 20ca1207 编写于 作者: T Takahiro

Replace checking if image has to DataURL with checking if image is instanceof...

Replace checking if image has to DataURL with checking if image is instanceof HTMLCanvasElement in getDataURL() of Texture
上级 7c40f1c6
......@@ -125,7 +125,7 @@ Object.assign( Texture.prototype, EventDispatcher.prototype, {
var canvas;
if ( image.toDataURL !== undefined ) {
if ( image instanceof HTMLCanvasElement ) {
canvas = image;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册