2.1.0 texture.initWithElement(cc.game.canvas) 在红米5Plus 上无效

下面是代码,红米5Plus 自带浏览器上,调用以后精灵全黑。
不知道其他手机是否也有类似情况。
有解决方法吗。或者其他代替的方式

sprite.spriteFrame = new cc.SpriteFrame();
let texture = new cc.Texture2D();
texture.initWithElement(cc.game.canvas);
sprite.spriteFrame.setTexture(texture);

过了好几年这个bug还没修复,就操了