private updateTexture(data: any, width: number, height: number) {
this._texture.initWithData(data, cc.Texture2D.PixelFormat.RGBA8888, width, height);
this._sprite.spriteFrame.setTexture(this._texture);
//@ts-ignore
this._sprite.markForRender(true);
}
用webgl copy tosubimg