summaryrefslogtreecommitdiff
path: root/engine/src/texture.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-03-26 16:42:22 +0100
committerHampusM <hampus@hampusmat.com>2026-03-26 16:43:34 +0100
commit9ab41d06b4ff0b52360a8cda756a3b1343a1e2fc (patch)
tree5a2be512270ec6a2480b045f218b7a0ba54e00d7 /engine/src/texture.rs
parent3a92f3c8eacc4b5b51bf31280032113d9840ea03 (diff)
fix(engine): prevent uploading textures with invalid row alignmentsHEADmaster
Diffstat (limited to 'engine/src/texture.rs')
-rw-r--r--engine/src/texture.rs6
1 files changed, 5 insertions, 1 deletions
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(),
},
);