Selaa lähdekoodia

Force to no color space conversion in ImageBitmapLoader

Takahiro 4 vuotta sitten
vanhempi
commit
3708694c4b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/loaders/ImageBitmapLoader.js

+ 1 - 1
src/loaders/ImageBitmapLoader.js

@@ -73,7 +73,7 @@ ImageBitmapLoader.prototype = Object.assign( Object.create( Loader.prototype ),
 
 		} ).then( function ( blob ) {
 
-			return createImageBitmap( blob, scope.options );
+			return createImageBitmap( blob, Object.assign( scope.options, { colorSpaceConversion: 'none' } ) );
 
 		} ).then( function ( imageBitmap ) {