Skip to content

Commit 3886b8b

Browse files
committed
Format
1 parent 51028c8 commit 3886b8b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

wgpu-core/src/device/queue.rs

+1
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
831831
needs_flag |= matches!(source.source, wgt::ExternalImageSource::OffscreenCanvas(_));
832832
needs_flag |= source.origin != wgt::Origin2d::ZERO;
833833
needs_flag |= destination.color_space != wgt::PredefinedColorSpace::Srgb;
834+
#[allow(clippy::bool_comparison)]
834835
if matches!(source.source, wgt::ExternalImageSource::ImageBitmap(_)) {
835836
needs_flag |= source.flip_y != false;
836837
needs_flag |= destination.premultiplied_alpha != false;

wgpu-hal/src/gles/queue.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,10 @@ impl super::Queue {
384384
dst_premultiplication,
385385
ref copy,
386386
} => {
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;
389391

390392
unsafe {
391393
if src.flip_y {

0 commit comments

Comments
 (0)