ruffle/render
Aaron Hill 2f81f5814d render: Add `premultiplied_alpha` parameter for image capture
When rendering offscreen, we want the resulting image to use
premultiplied alpha, since the image will be stored in a texture.

However, when capturing an image in the exporter or test framework,
we want to use straight alpha, so that the resulting image can
be saved as a PNG.

Previously, we incorrectly used straight alpha everywhere, resulting
in incorrect output when using BitmapData.draw with transparency.
2022-09-09 15:46:48 -07:00
..
canvas chore: Remove unused `image` dependency 2022-09-07 13:09:29 -07:00
src avm2: Implement BitmapData.dispose 2022-09-07 11:02:53 -07:00
webgl webgl: Remove `Texture` wrapper 2022-09-08 21:04:02 -05:00
wgpu render: Add `premultiplied_alpha` parameter for image capture 2022-09-09 15:46:48 -07:00
Cargo.toml chore: Remove unused `image` dependency 2022-09-07 13:09:29 -07:00