提交 42ce0a7f 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #11946 from takahirox/UpdateTextureGetDataURL

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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册