Fix instance_count when using draw_index with instance buffers (#1033)

This commit is contained in:
franckv 2018-09-01 16:57:03 +02:00 committed by Lucas Kent
parent e5d501fb5e
commit 686c02440c
2 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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)
}
}