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 repeating this does not
renderer.render_to_texture(
    &device, &queue,
    &scene, &texture_view,
    &RenderParams {
        base_color: Color::TRANSPARENT,
        width, height,
        antialiasing_method: vello::AaConfig::Area
    }
);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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