Skip to content

Commit

Permalink
WebGPURenderer: Pipelines - Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed May 27, 2024
1 parent 55cc124 commit 83783da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/jsm/renderers/common/Pipelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Pipelines extends DataMap {

if ( pipeline === undefined ) {

if ( previousPipeline && previousPipeline.usedTimes === 0 ) this._releasePipeline( computeNode );
if ( previousPipeline && previousPipeline.usedTimes === 0 ) this._releasePipeline( previousPipeline );

pipeline = this._getComputePipeline( computeNode, stageCompute, cacheKey, bindings );

Expand Down Expand Up @@ -205,7 +205,7 @@ class Pipelines extends DataMap {

}

super.delete( object );
return super.delete( object );

}

Expand Down

0 comments on commit 83783da

Please sign in to comment.