Ensure that path windings are rendered to the right atlas texture
Fixes #5
This commit is contained in:
parent
a9c428ad05
commit
2efc90adc6
1 changed files with 10 additions and 8 deletions
|
@ -164,14 +164,16 @@ impl Renderer {
|
|||
},
|
||||
});
|
||||
|
||||
if current_atlas_id.map_or(false, |current_atlas_id| atlas_id != current_atlas_id) {
|
||||
self.render_path_stencils_for_atlas(
|
||||
offset,
|
||||
&vertices,
|
||||
atlas_id,
|
||||
command_buffer,
|
||||
);
|
||||
vertices.clear();
|
||||
if let Some(current_atlas_id) = current_atlas_id {
|
||||
if atlas_id != current_atlas_id {
|
||||
self.render_path_stencils_for_atlas(
|
||||
offset,
|
||||
&vertices,
|
||||
current_atlas_id,
|
||||
command_buffer,
|
||||
);
|
||||
vertices.clear();
|
||||
}
|
||||
}
|
||||
|
||||
current_atlas_id = Some(atlas_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue