mirror of
https://github.com/servo/servo.git
synced 2025-06-04 07:35:36 +00:00
pixels: Actually write pixels in MULTIPLY
generic_transform_inplace
operations (#36895)
Multiply operations applied in `generic_transform_inplace` were calculating the new pixel values, but not actually writing them. This changes fixes that issue. Testing: /webgl/tests/conformance/context/premultiplyalpha-test.html Fixes: #35759 Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
This commit is contained in:
parent
c6de8fc8e6
commit
bc9f55bcc9
2 changed files with 4 additions and 11 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue