Skip to content

Commit 9a7852d

Browse files
committed
Fix SetSpriteTextureBindGroup to use index (#3896)
# Objective Fix `SetSpriteTextureBindGroup` to use index instead of hard coded 1. Fixes #3895 ## Solution 1 -> I Co-authored-by: devjobe <[email protected]>
1 parent bdbf626 commit 9a7852d

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_sprite/src/render

1 file changed

+1
-1
lines changed

crates/bevy_sprite/src/render/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ impl<const I: usize> EntityRenderCommand for SetSpriteTextureBindGroup<I> {
601601
let image_bind_groups = image_bind_groups.into_inner();
602602

603603
pass.set_bind_group(
604-
1,
604+
I,
605605
image_bind_groups
606606
.values
607607
.get(&Handle::weak(sprite_batch.image_handle_id))

0 commit comments

Comments
 (0)