bevy/crates/bevy_core_pipeline
NiseVoid 9daf16bb87
Handle 0 height in prepare_bloom_textures (#14423)
# Objective

- Fix a confusing panic when the viewport width is non-zero and the
height is 0, `prepare_bloom_textures` tries to create a `4294967295x1`
texture.

## Solution

- Avoid dividing by zero
- Apps still crash after this, but now on a more reasonable error about
the zero-size viewport

## Testing

- I isolated and tested the math. A height of 0 sets `mip_height_ratio`
to `inf`, causing the width to explode if it isn't also 0
2024-08-02 19:24:54 +02:00
..
src Handle 0 height in prepare_bloom_textures (#14423) 2024-08-02 19:24:54 +02:00
Cargo.toml Release 0.14.0 version bump (#14126) 2024-07-03 18:22:10 -07:00
README.md Add README.md to all crates (#13184) 2024-05-02 18:56:00 +00:00

Bevy Core Pipeline

License Crates.io Downloads Docs Discord