Skip to content

Commit

Permalink
Fix WebGLMultisampleRenderTarget mipmap generation (#22064)
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirox authored Jun 30, 2021
1 parent 1991d6f commit 0a3a0ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1052,14 +1052,14 @@ function WebGLRenderer( parameters = {} ) {

if ( _currentRenderTarget !== null ) {

// Generate mipmap if we're using any kind of mipmap filtering

textures.updateRenderTargetMipmap( _currentRenderTarget );

// resolve multisample renderbuffers to a single-sample texture if necessary

textures.updateMultisampleRenderTarget( _currentRenderTarget );

// Generate mipmap if we're using any kind of mipmap filtering

textures.updateRenderTargetMipmap( _currentRenderTarget );

}

//
Expand Down

0 comments on commit 0a3a0ed

Please sign in to comment.