mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
9daf16bb87
# 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 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |