mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-21 22:34:43 +00:00
Fix instance_count when using draw_index with instance buffers (#1033)
This commit is contained in:
parent
e5d501fb5e
commit
686c02440c
@ -2,6 +2,7 @@
|
||||
|
||||
- Split 'PersistentDescriptorSetError::MissingUsage' into 'MissingImageUsage' and 'MissingBufferUsage'
|
||||
each with a matching enum indicating the usage that was missing.
|
||||
- Fix instance_count when using draw_index with instance buffers
|
||||
|
||||
# Version 0.10.0 (2018-08-10)
|
||||
|
||||
|
@ -1073,7 +1073,11 @@ impl<P> AutoCommandBufferBuilder<P> {
|
||||
debug_assert!(self.graphics_allowed);
|
||||
|
||||
self.inner
|
||||
.draw_indexed(ib_infos.num_indices as u32, 1, 0, 0, 0);
|
||||
.draw_indexed(ib_infos.num_indices as u32,
|
||||
vb_infos.instance_count as u32,
|
||||
0,
|
||||
0,
|
||||
0);
|
||||
Ok(self)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user