Skip to content

Commit

Permalink
Remove unnecessary pipeline changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatekii committed Jul 28, 2019
1 parent fcd5bec commit 69343e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drawing/painter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -745,10 +745,10 @@ impl Painter {
clear_stencil: 255,
}),
});
render_pass.set_pipeline(&self.blend_pipeline);
render_pass.set_bind_group(0, &self.bind_group, &[]);
for feature in layer_collection.iter_features() {
render_pass.set_pipeline(&self.blend_pipeline);
render_pass.set_stencil_reference(feature.id as u32);
render_pass.set_bind_group(0, &self.bind_group, &[]);
for (i, drawable_tile) in self.loaded_tiles.values_mut().enumerate() {
drawable_tile.paint(&mut render_pass, &layer_collection, i as u32, feature.id, false);
}
Expand Down

0 comments on commit 69343e2

Please sign in to comment.