bevy/pipelined/bevy_render2
Robert Swain fb33d591df Fix window size change panic (#2858)
# Objective

Using fullscreen or trying to resize a window caused a panic. Fix that.

## Solution

- Don't wholesale overwrite the ExtractedWindows resource when extracting windows
  - This could cause an accumulation of unused windows that are holding onto swap chain frames?
- Check the if width and/or height changed since the last frame
- If the size changed, recreate the swap chain
- Ensure dimensions are >= 1 to avoid panics due to any dimension being 0
2021-09-23 20:55:18 +00:00
..
src Fix window size change panic (#2858) 2021-09-23 20:55:18 +00:00
Cargo.toml remove .system from pipelined code (#2538) 2021-07-26 23:44:23 +00:00