Ver código fonte

Fix WebGLMultisampleRenderTarget mipmap generation (#22064)

Takahiro 4 anos atrás
pai
commit
0a3a0ed587
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      src/renderers/WebGLRenderer.js

+ 4 - 4
src/renderers/WebGLRenderer.js

@@ -1052,14 +1052,14 @@ function WebGLRenderer( parameters = {} ) {
 
 
 		if ( _currentRenderTarget !== null ) {
 		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
 			// resolve multisample renderbuffers to a single-sample texture if necessary
 
 
 			textures.updateMultisampleRenderTarget( _currentRenderTarget );
 			textures.updateMultisampleRenderTarget( _currentRenderTarget );
 
 
+			// Generate mipmap if we're using any kind of mipmap filtering
+
+			textures.updateRenderTargetMipmap( _currentRenderTarget );
+
 		}
 		}
 
 
 		//
 		//