Commit e838d1a
authored
Make sure to init fallback resources in bevy_sprite_render (#25574)
# Objective
- bevy_sprite_render is not adding the fallback resources which can
cause a crash when only 2d features are enabled.
## Solution
- Add init_fallback_resources to the RenderStartup of the
MaterialBindGroupPlugin so it's always initialized
## Testing
- I tested a separate empty project with only the 2d feature enabled and
it stopped crashing after this change
Closes #25572
Closes #255701 parent b771c53 commit e838d1a
2 files changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 33 | + | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
| |||
364 | 361 | | |
365 | 362 | | |
366 | 363 | | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
| 364 | + | |
372 | 365 | | |
373 | 366 | | |
374 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| 539 | + | |
539 | 540 | | |
540 | 541 | | |
541 | 542 | | |
| |||
2328 | 2329 | | |
2329 | 2330 | | |
2330 | 2331 | | |
2331 | | - | |
| 2332 | + | |
2332 | 2333 | | |
2333 | 2334 | | |
2334 | 2335 | | |
| |||
0 commit comments