Fix hardcoded texture bind group index in bevy_ui (#3905)

# Objective

While looking at #3896, I noticed the same error in the equivalent location in `bevy_ui`.

## Solution

Fix it in the same way.
This commit is contained in:
Rob Parrett 2022-02-12 00:22:10 +00:00
parent 9a7852db0f
commit 6475268351

View File

@ -174,7 +174,7 @@ impl<const I: usize> EntityRenderCommand for SetUiTextureBindGroup<I> {
let batch = query_batch.get(item).unwrap();
let image_bind_groups = image_bind_groups.into_inner();
pass.set_bind_group(1, image_bind_groups.values.get(&batch.image).unwrap(), &[]);
pass.set_bind_group(I, image_bind_groups.values.get(&batch.image).unwrap(), &[]);
RenderCommandResult::Success
}
}