From 9ab41d06b4ff0b52360a8cda756a3b1343a1e2fc Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 26 Mar 2026 16:42:22 +0100 Subject: fix(engine): prevent uploading textures with invalid row alignments --- engine/src/texture.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engine/src/texture.rs') diff --git a/engine/src/texture.rs b/engine/src/texture.rs index b92bc2e..b069228 100644 --- a/engine/src/texture.rs +++ b/engine/src/texture.rs @@ -111,7 +111,11 @@ pub(crate) fn initialize(assets: &mut Assets) assets.store_with_label( WHITE_1X1_ASSET_LABEL.clone(), Texture { - image: Image::from_color(Dimens { width: 1, height: 1 }, Color::WHITE_U8), + image: Image::from_color_and_alpha( + Dimens { width: 1, height: 1 }, + Color::WHITE_U8, + 1, + ), properties: Properties::default(), }, ); -- cgit v1.2.3-18-g5258