Skip to content

Commit 6276b5a

Browse files
committed
texture: Strip alpha channel when premultiplying
1 parent 77cb5cc commit 6276b5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/texture/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ impl Texture {
726726
c[0] = (c[0] as f32 * c[3] as f32 / 255.) as u8;
727727
c[1] = (c[1] as f32 * c[3] as f32 / 255.) as u8;
728728
c[2] = (c[2] as f32 * c[3] as f32 / 255.) as u8;
729+
c[3] = 255;
729730
}
730731
}
731732

0 commit comments

Comments
 (0)