Skip to content

Creating a RenderContext and Pixmap with differing dimensions can result in a crash #1191

@LaurenzV

Description

@LaurenzV
let mut ctx = RenderContext::new(700, 600);
let mut pixmap = Pixmap::new(700, 700);
let rect = Rect::new(0.0, 0.0, 700.0, 700.0);

ctx.push_layer(Some(&rect.to_path(0.1)), None, None, None);
ctx.pop_layer();

ctx.flush();
ctx.render_to_pixmap(&mut pixmap);

Maybe we can somehow enforce them to have the same dimension?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cpuApplies to the vello_cpu crate

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions