From 1ccd056d191c1b62b66b341da1fe7237ec782880 Mon Sep 17 00:00:00 2001 From: Tiaan Louw Date: Mon, 9 Sep 2024 14:34:13 +0200 Subject: [PATCH] Remove reference to egui::Color32. (#5011) As most of the code refers to types in epaint, it makes sense to use the Color32 alias from epaint as well. - [x] I have followed the instructions in the PR template --- crates/egui-wgpu/src/renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui-wgpu/src/renderer.rs b/crates/egui-wgpu/src/renderer.rs index 476685707ad..899cfbed7a1 100644 --- a/crates/egui-wgpu/src/renderer.rs +++ b/crates/egui-wgpu/src/renderer.rs @@ -542,7 +542,7 @@ impl Renderer { "Mismatch between texture size and texel count" ); crate::profile_scope!("font -> sRGBA"); - Cow::Owned(image.srgba_pixels(None).collect::>()) + Cow::Owned(image.srgba_pixels(None).collect::>()) } }; let data_bytes: &[u8] = bytemuck::cast_slice(data_color32.as_slice());