jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.15k stars 169 forks source link

examples: Be defensive in set_viewport in egui_dock #208

Closed torsteingrindvik closed 1 month ago

torsteingrindvik commented 1 month ago

During the first few ECS frames (or other corner cases like resizing, minimizing etc.) at times strange sizes are reported. If the desired viewport ends up outside the physical space of the target wgpu crashes. Skip updates where that happens.