From ba8835a14d8af461836a5cb0c6a90bbcac083448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20Kry=C5=84ski?= Date: Tue, 19 Oct 2021 00:31:09 +0200 Subject: [PATCH] also fix DrawShadowMesh::draw --- pipelined/bevy_pbr2/src/render/light.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelined/bevy_pbr2/src/render/light.rs b/pipelined/bevy_pbr2/src/render/light.rs index 98b714ff58060..bd1a91c453bde 100644 --- a/pipelined/bevy_pbr2/src/render/light.rs +++ b/pipelined/bevy_pbr2/src/render/light.rs @@ -797,7 +797,7 @@ impl Draw for DrawShadowMesh { let gpu_mesh = meshes.into_inner().get(mesh_handle).unwrap(); pass.set_vertex_buffer(0, gpu_mesh.vertex_buffer.slice(..)); if let Some(index_info) = &gpu_mesh.index_info { - pass.set_index_buffer(index_info.buffer.slice(..), 0, IndexFormat::Uint32); + pass.set_index_buffer(index_info.buffer.slice(..), 0, index_info.index_format); pass.draw_indexed(0..index_info.count, 0, 0..1); } else { panic!("non-indexed drawing not supported yet")