Skip to content

Commit

Permalink
Use can_draw in can_draw_indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlansneff committed Aug 17, 2020
1 parent e24aaf3 commit ccfa815
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/bevy_render/src/render_graph/nodes/pass_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,7 @@ impl DrawState {
}

pub fn can_draw_indexed(&self) -> bool {
self.bind_groups.iter().all(|b| b.is_some())
&& self.vertex_buffers.iter().all(|v| v.is_some())
&& self.index_buffer.is_some()
self.can_draw() && self.index_buffer.is_some()
}

pub fn set_pipeline(
Expand Down

0 comments on commit ccfa815

Please sign in to comment.