Commit 5330b01
authored
Make
# Objective
- Partially addresses #23688.
- Gives advice to users who accidentally create an invalid `Skybox`.
- Prevents rendering from totally breaking in that case.
## Solution
If the image is detected to be invalid, have
`prepare_skybox_bind_groups` ignore it (and warn once).
## Testing
Manually tested that `examples/3d/skybox.rs` works if the initial skybox
has the default image.
If there’s a good way to programmatically test things like this, let me
know — I didn’t see any similar tests to emulate.Skybox not break rendering if its image is default or 2D. (#23689)1 parent 8b5a3b8 commit 5330b01
1 file changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| 236 | + | |
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
| |||
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
0 commit comments