mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 22:18:33 +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 {
|
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(
|
||||||
|
|
Loading…
Add table
Reference in a new issue