[]WebGL模式下用遮罩实现圆形头像会有警告出现
警告如下:WebGL: INVALID_OPERATION: bindTexture: attempt to bind a deleted texture
代码示例:
代码示例:
this.img = new Laya.Image();
this.img.loadImage("url");
const mask = new Laya.Sprite();
mask.graphics.drawCircle(75, 75, 75, "#ffffff");
this.img.mask = mask;
this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2);
Laya.stage.addChild(this.img);
要回复问题请先登录
2 个回复
cuixueying
赞同来自:
a694284699
赞同来自: