szeged / webrender

A GPU-based renderer for the web
https://doc.servo.org/webrender/
Mozilla Public License 2.0
45 stars 7 forks source link

Wrong colors with `read_pixels_into` #260

Open zakorgy opened 5 years ago

zakorgy commented 5 years ago

The red and blue color values in the output of our read_pixels_into function are sometimes swapped. We should revisit what is the expected format and what is the actual format the target Texture(image) has, and properly handle the cases where those differs. Some failing gecko reftests to reproduce this: layout/reftests/image-element/element-paint-recursion.html [dx12] layout/reftests/svg/filters/feDropShadow-01.svg The result base64 images will have the wrong colors.