Skip to content

Commit 508085d

Browse files
committed
Texture resizing: remove image flipping
1 parent b6d472b commit 508085d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/renderers/webgl/WebGLTextures.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,6 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
5959
canvas.height = height;
6060

6161
var context = canvas.getContext( '2d' );
62-
63-
// ImageBitmap is flipped vertically
64-
65-
if ( useOffscreenCanvas ) {
66-
67-
context.translate( 0, height );
68-
context.scale( 1, - 1 );
69-
70-
}
71-
7262
context.drawImage( image, 0, 0, width, height );
7363

7464
console.warn( 'THREE.WebGLRenderer: Texture has been resized from (' + image.width + 'x' + image.height + ') to (' + width + 'x' + height + ').' );

0 commit comments

Comments
 (0)