瀏覽代碼

Force to no color space conversion in ImageBitmapLoader

Takahiro 4 年之前
父節點
當前提交
3708694c4b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 ) {