Skip to content

Commit

Permalink
also fix DrawShadowMesh::draw
Browse files Browse the repository at this point in the history
  • Loading branch information
mrk-its authored and cart committed Oct 28, 2021
1 parent c3b8197 commit ba8835a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelined/bevy_pbr2/src/render/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ impl Draw<Shadow> 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")
Expand Down

0 comments on commit ba8835a

Please sign in to comment.