From 508085d56e42fea797fe3b204e43c149ae8f3ec8 Mon Sep 17 00:00:00 2001 From: Merwan Achibet Date: Mon, 11 Mar 2019 20:24:57 +0100 Subject: [PATCH] Texture resizing: remove image flipping --- src/renderers/webgl/WebGLTextures.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/renderers/webgl/WebGLTextures.js b/src/renderers/webgl/WebGLTextures.js index 3e7af9b769..09206c2d91 100644 --- a/src/renderers/webgl/WebGLTextures.js +++ b/src/renderers/webgl/WebGLTextures.js @@ -59,16 +59,6 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, canvas.height = height; var context = canvas.getContext( '2d' ); - - // ImageBitmap is flipped vertically - - if ( useOffscreenCanvas ) { - - context.translate( 0, height ); - context.scale( 1, - 1 ); - - } - context.drawImage( image, 0, 0, width, height ); console.warn( 'THREE.WebGLRenderer: Texture has been resized from (' + image.width + 'x' + image.height + ') to (' + width + 'x' + height + ').' ); -- GitLab