Skip to content

Commit

Permalink
fix: Fix WebGLResourceManager.destroyUnusedResource typo
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Jul 4, 2023
1 parent 33f71d9 commit c8c9075
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ const WebGLRenderer = Class.create(/** @lends WebGLRenderer.prototype */ {
this.fire('afterRender');
}

resourceManager.destroyUnsuedResource(stage);
resourceManager.destroyUnusedResource(stage);
},
/**
* 渲染场景
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/WebGLResourceManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c8c9075

Please sign in to comment.