From e734b096cd1b5d34f22308b62db411ff7ff25672 Mon Sep 17 00:00:00 2001 From: Tiaan Louw Date: Tue, 27 Aug 2024 10:17:53 +0200 Subject: [PATCH] Remove reference to egui::Color32. As most of the code refers to types in epaint, it makes sense to use the Color32 alias from epaint as well. --- 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());