Pārlūkot izejas kodu

LogLuvLoader: Clean up. (#22879)

Michael Herzog 3 gadi atpakaļ
vecāks
revīzija
327f43dbc0
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      examples/jsm/loaders/LogLuvLoader.js

+ 2 - 1
examples/jsm/loaders/LogLuvLoader.js

@@ -399,7 +399,8 @@ UTIF.toRGBA = function ( out, type ) {
 
 	}
 
-	const intp = ( out[ 't262' ] ? out[ 't262' ][ 0 ] : 2 ), bps = ( out[ 't258' ] ? Math.min( 32, out[ 't258' ][ 0 ] ) : 1 );
+	let intp = out[ 't262' ] ? out[ 't262' ][ 0 ] : 2;
+	const bps = out[ 't258' ] ? Math.min( 32, out[ 't258' ][ 0 ] ) : 1;
 
 	if ( out[ 't262' ] == null && bps == 1 ) intp = 0;