Browse Source

WebGLRenderer: Fix active texture setting in `copyTextureToTexture()`. (#33153)

Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
Guillaume Besson 1 month ago
parent
commit
2e69815d93
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/renderers/WebGLRenderer.js

+ 2 - 0
src/renderers/WebGLRenderer.js

@@ -3241,6 +3241,8 @@ class WebGLRenderer {
 
 			}
 
+			state.activeTexture( _gl.TEXTURE0 ); // see #33153
+
 			_gl.pixelStorei( _gl.UNPACK_FLIP_Y_WEBGL, dstTexture.flipY );
 			_gl.pixelStorei( _gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, dstTexture.premultiplyAlpha );
 			_gl.pixelStorei( _gl.UNPACK_ALIGNMENT, dstTexture.unpackAlignment );

粤ICP备19079148号