From 0e50cfa17d5255d04381f78f52a5fd7c23078833 Mon Sep 17 00:00:00 2001 From: Jacob Gardner Date: Tue, 5 Jun 2018 05:22:52 -0500 Subject: [PATCH] Fix instancing bug where we reference the first parameter for the number of instances (#965) --- vulkano/src/pipeline/vertex/one_one.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulkano/src/pipeline/vertex/one_one.rs b/vulkano/src/pipeline/vertex/one_one.rs index 80ce8e87..ce00a447 100644 --- a/vulkano/src/pipeline/vertex/one_one.rs +++ b/vulkano/src/pipeline/vertex/one_one.rs @@ -104,7 +104,7 @@ unsafe impl VertexSource>> // FIXME: safety assert_eq!(source.len(), 2); let len = source[0].size() / mem::size_of::(); - let inst = source[0].size() / mem::size_of::(); + let inst = source[1].size() / mem::size_of::(); let s0 = source.remove(0); let s1 = source.remove(0); (vec![Box::new(s0) as Box<_>, Box::new(s1) as Box<_>], len, inst)