Merwan Achibet 7 лет назад
Родитель
Сommit
3c5a5eb2e8
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/renderers/webgl/WebGLTextures.js

+ 2 - 3
src/renderers/webgl/WebGLTextures.js

@@ -62,11 +62,10 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 				// ImageBitmap is flipped vertically
 
-				if ( useOffscreenCanvas )
-				{
+				if ( useOffscreenCanvas ) {
 
 					context.translate( 0, height );
-					context.scale( 1, -1 );
+					context.scale( 1, - 1 );
 
 				}
 

粤ICP备19079148号