Skip to content

Commit

Permalink
WebGLRenderLists/WebGLRenderStats: Simplified.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 11, 2021
1 parent 00904c5 commit af07e8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/renderers/webgl/WebGLRenderLists.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ function WebGLRenderLists( properties ) {
if ( lists.has( scene ) === false ) {

list = new WebGLRenderList( properties );
lists.set( scene, [] );
lists.get( scene ).push( list );
lists.set( scene, [ list ] );

} else {

Expand Down
3 changes: 1 addition & 2 deletions src/renderers/webgl/WebGLRenderStates.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ function WebGLRenderStates( extensions, capabilities ) {
if ( renderStates.has( scene ) === false ) {

renderState = new WebGLRenderState( extensions, capabilities );
renderStates.set( scene, [] );
renderStates.get( scene ).push( renderState );
renderStates.set( scene, [ renderState ] );

} else {

Expand Down

0 comments on commit af07e8a

Please sign in to comment.