Fix texture sampler destroyed issue (#4611)

This commit is contained in:
pandamicro
2019-06-13 13:12:47 +08:00
committed by GitHub
parent 3fcea291d3
commit 994d93e65b
@@ -441,7 +441,6 @@ export class BatchedSkinningModelComponent extends SkinningModelComponent {
protected resizeAtlases () {
for (const prop of Object.keys(this._textures)) {
const tex = this._textures[prop];
tex.destroy();
tex.create(this.atlasSize, this.atlasSize, PixelFormat.RGBA8888);
}
}