Skip to content

Commit

Permalink
Fix SetSpriteTextureBindGroup to use index (bevyengine#3896)
Browse files Browse the repository at this point in the history
# Objective

Fix `SetSpriteTextureBindGroup` to use index instead of hard coded 1.
Fixes bevyengine#3895 

## Solution

1 -> I


Co-authored-by: devjobe <[email protected]>
  • Loading branch information
devjobe and devjobe committed Feb 8, 2022
1 parent bdbf626 commit 9a7852d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_sprite/src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ impl<const I: usize> EntityRenderCommand for SetSpriteTextureBindGroup<I> {
let image_bind_groups = image_bind_groups.into_inner();

pass.set_bind_group(
1,
I,
image_bind_groups
.values
.get(&Handle::weak(sprite_batch.image_handle_id))
Expand Down

0 comments on commit 9a7852d

Please sign in to comment.