From 65dd2bce49613c2c10bb15eacbb0393873b45138 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Tue, 26 Mar 2019 21:14:35 -0700 Subject: [PATCH] WebGLRenderer: Fixed copyFramebufferToTexture and copyTextureToTexture. --- src/renderers/WebGLRenderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderers/WebGLRenderer.js b/src/renderers/WebGLRenderer.js index 023c7cce11..9b4a259dbb 100644 --- a/src/renderers/WebGLRenderer.js +++ b/src/renderers/WebGLRenderer.js @@ -2576,7 +2576,7 @@ function WebGLRenderer( parameters ) { var height = texture.image.height; var glFormat = utils.convert( texture.format ); - this.setTexture2D( texture, 0 ); + textures.setTexture2D( texture, 0 ); _gl.copyTexImage2D( _gl.TEXTURE_2D, level || 0, glFormat, position.x, position.y, width, height, 0 ); @@ -2589,7 +2589,7 @@ function WebGLRenderer( parameters ) { var glFormat = utils.convert( dstTexture.format ); var glType = utils.convert( dstTexture.type ); - this.setTexture2D( dstTexture, 0 ); + textures.setTexture2D( dstTexture, 0 ); if ( srcTexture.isDataTexture ) { -- GitLab