aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/pixels/lib.rs7
-rw-r--r--tests/wpt/webgl/meta/conformance/context/premultiplyalpha-test.html.ini8
2 files changed, 4 insertions, 11 deletions
diff --git a/components/pixels/lib.rs b/components/pixels/lib.rs
index 24386ff830a..c1f57875c6d 100644
--- a/components/pixels/lib.rs
+++ b/components/pixels/lib.rs
@@ -294,9 +294,10 @@ pub fn generic_transform_inplace<
match MULTIPLY {
1 => {
let a = rgba[3];
- multiply_u8_color(rgba[0], a);
- multiply_u8_color(rgba[1], a);
- multiply_u8_color(rgba[2], a);
+
+ rgba[0] = multiply_u8_color(rgba[0], a);
+ rgba[1] = multiply_u8_color(rgba[1], a);
+ rgba[2] = multiply_u8_color(rgba[2], a);
},
2 => {
let a = rgba[3] as u32;
diff --git a/tests/wpt/webgl/meta/conformance/context/premultiplyalpha-test.html.ini b/tests/wpt/webgl/meta/conformance/context/premultiplyalpha-test.html.ini
deleted file mode 100644
index ffc971bc861..00000000000
--- a/tests/wpt/webgl/meta/conformance/context/premultiplyalpha-test.html.ini
+++ /dev/null
@@ -1,8 +0,0 @@
-[premultiplyalpha-test.html]
- bug: https://github.com/servo/servo/issues/21132
-
- [WebGL test #62]
- expected: FAIL
-
- [WebGL test #69]
- expected: FAIL