I found this bug after upgrading the version of vello from 0.7.0 to 0.9.0.
Here's the code for recreating this bug (most things are omitted to simplify the code):
use vello::kurbo::Affine;
use vello::peniko::{ Color, ImageData };
let image_data = ImageData {
// ...
};
let scene = vello::Scene::new();
scene.draw_image(&image_data, /* ... */);
// the first rendering draws the image correctly,
// but after the second rendering it does not
renderer.render_to_texture(
&device, &queue,
&scene, &texture_view,
&RenderParams {
base_color: Color::TRANSPARENT,
width, height,
antialiasing_method: vello::AaConfig::Area
}
);
I found this bug after upgrading the version of
vellofrom0.7.0to0.9.0.Here's the code for recreating this bug (most things are omitted to simplify the code):