From a86f11e0103d70ba7b96ad1bcbfe653fbcc3a33b Mon Sep 17 00:00:00 2001 From: Takahiro Date: Tue, 29 Jun 2021 18:38:36 -0700 Subject: [PATCH] Fix WebGLMultisampleRenderTarget mipmap generation --- src/renderers/WebGLRenderer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderers/WebGLRenderer.js b/src/renderers/WebGLRenderer.js index e062ca03076e41..ef99601499130a 100644 --- a/src/renderers/WebGLRenderer.js +++ b/src/renderers/WebGLRenderer.js @@ -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 ); + } //