Commit 3886b8b 1 parent 51028c8 commit 3886b8b Copy full SHA for 3886b8b
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -831,6 +831,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
831
831
needs_flag |= matches ! ( source. source, wgt:: ExternalImageSource :: OffscreenCanvas ( _) ) ;
832
832
needs_flag |= source. origin != wgt:: Origin2d :: ZERO ;
833
833
needs_flag |= destination. color_space != wgt:: PredefinedColorSpace :: Srgb ;
834
+ #[ allow( clippy:: bool_comparison) ]
834
835
if matches ! ( source. source, wgt:: ExternalImageSource :: ImageBitmap ( _) ) {
835
836
needs_flag |= source. flip_y != false ;
836
837
needs_flag |= destination. premultiplied_alpha != false ;
Original file line number Diff line number Diff line change @@ -384,8 +384,10 @@ impl super::Queue {
384
384
dst_premultiplication,
385
385
ref copy,
386
386
} => {
387
- const UNPACK_FLIP_Y_WEBGL : u32 = web_sys:: WebGl2RenderingContext :: UNPACK_FLIP_Y_WEBGL ;
388
- const UNPACK_PREMULTIPLY_ALPHA_WEBGL : u32 = web_sys:: WebGl2RenderingContext :: UNPACK_PREMULTIPLY_ALPHA_WEBGL ;
387
+ const UNPACK_FLIP_Y_WEBGL : u32 =
388
+ web_sys:: WebGl2RenderingContext :: UNPACK_FLIP_Y_WEBGL ;
389
+ const UNPACK_PREMULTIPLY_ALPHA_WEBGL : u32 =
390
+ web_sys:: WebGl2RenderingContext :: UNPACK_PREMULTIPLY_ALPHA_WEBGL ;
389
391
390
392
unsafe {
391
393
if src. flip_y {
You can’t perform that action at this time.
0 commit comments