diff --git a/src/renderer/WebGLRenderer.js b/src/renderer/WebGLRenderer.js index 87868f6..532c2a6 100644 --- a/src/renderer/WebGLRenderer.js +++ b/src/renderer/WebGLRenderer.js @@ -822,7 +822,7 @@ const WebGLRenderer = Class.create(/** @lends WebGLRenderer.prototype */ { this.fire('afterRender'); } - resourceManager.destroyUnsuedResource(stage); + resourceManager.destroyUnusedResource(stage); }, /** * 渲染场景 diff --git a/src/renderer/WebGLResourceManager.js b/src/renderer/WebGLResourceManager.js index 56eb091..84adc7b 100644 --- a/src/renderer/WebGLResourceManager.js +++ b/src/renderer/WebGLResourceManager.js @@ -111,7 +111,7 @@ const WebGLResourceManager = Class.create(/** @lends WebGLResourceManager.protot * @param {Node} [rootNode] 根节点,不传代表所有资源都没被使用过。 * @return {WebGLResourceManager} this */ - destroyUnsuedResource(rootNode) { + destroyUnusedResource(rootNode) { const needDestroyResources = this._needDestroyResources; if (needDestroyResources.length === 0) { return this;