SpriteBatch
es can be overwritten in prepare_sprite_image_bind_groups
#17351
Labels
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
S-Needs-Investigation
This issue requires detective work to figure out what's going wrong
Bevy version
Main + 0.15
What you did
What went wrong
In the second window it should display 2 and 3, but sometimes it displays the wrong glyphs.
Additional information
Font's use a texture atlas, so there is only one texture.
So each render phase generates a single
SpriteBatch
.Then each
SpriteBatch
is inserted on the render entity for the first phase item in that batch.This means that if the phase item corresponding to the "3" glyph is the first item in each batch, both
SpriteBatch
s will be inserted on the same render entity, overwriting one of the batches.The "3" glyph sprite is visible in both views so that single
SpriteBatch
is then drawn for both views.It also seems odd how the same sprite batch goes to each view as well.
The text was updated successfully, but these errors were encountered: