|
@@ -1961,6 +1961,12 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
textures.setTexture2D( dstTexture, 0 );
|
|
|
|
|
|
+ // As another texture upload may have changed pixelStorei
|
|
|
+ // parameters, make sure they are correct for the dstTexture
|
|
|
+ _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 );
|
|
|
+
|
|
|
if ( srcTexture.isDataTexture ) {
|
|
|
|
|
|
_gl.texSubImage2D( _gl.TEXTURE_2D, level, position.x, position.y, width, height, glFormat, glType, srcTexture.image.data );
|