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 <git@devjobe.com>
This commit is contained in:
devjobe 2022-02-08 23:18:11 +00:00
parent bdbf626341
commit 9a7852db0f

View file

@ -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))