Skip to content

repeatedly rendering the same ImageData does not occur any error but the image does not appear except the first rendering #1809

Description

@choyunjin

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
    }
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions