mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
Use can_draw in can_draw_indexed
This commit is contained in:
parent
e24aaf3dd3
commit
ccfa815cac
1 changed files with 1 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue