Skip to content

Commit

Permalink
Merge pull request #15904 from merwaaan/fix-flipped-resizing
Browse files Browse the repository at this point in the history
Fix non power-of-2 textures being flipped when resized
  • Loading branch information
mrdoob committed Mar 11, 2019
2 parents 796be13 + 508085d commit 7d387c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/webgl/WebGLTextures.js
Expand Up @@ -65,7 +65,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,

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

return useOffscreenCanvas ? canvas.transferToImageBitmap() : canvas;
return canvas;

} else {

Expand Down

0 comments on commit 7d387c3

Please sign in to comment.