Use can_draw in can_draw_indexed

This commit is contained in:
Lachlan Sneff 2020-08-17 10:56:27 -04:00
parent e24aaf3dd3
commit ccfa815cac

View file

@ -319,9 +319,7 @@ impl DrawState {
} }
pub fn can_draw_indexed(&self) -> bool { pub fn can_draw_indexed(&self) -> bool {
self.bind_groups.iter().all(|b| b.is_some()) self.can_draw() && self.index_buffer.is_some()
&& self.vertex_buffers.iter().all(|v| v.is_some())
&& self.index_buffer.is_some()
} }
pub fn set_pipeline( pub fn set_pipeline(