Open
Description
Bevy version
git head 4423a2f
Operating system & version
Windows 10
What you did
When minimizing windows, panicked at 'No surface found for window.'
What you expected to happen
The window is minimized and there is no panic
What actually happened
The actual result of the actions you described.
Additional information
// main.rs
use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.run();
}
# Cargo.toml
[package]
name = "bevy_examples"
version = "0.1.0"
edition = "2021"
[dependencies]
bevy = { git = "https://gitee.com/lcw_qaq/bevy", features = ["dynamic"] }
panic info
thread 'main' panicked at 'No surface found for window.', C:\Users\LCW\.cargo\git\checkouts\bevy-09c88e8028296690\4423a2f\crates\bevy_wgpu\src\renderer\wgpu_render_resource_context.rs:372:14
// panic function
fn configure_surface(&self, window: &Window) {
let surfaces = self.resources.window_surfaces.read();
let surface_configuration: wgpu::SurfaceConfiguration = window.wgpu_into();
let surface = surfaces
.get(&window.id())
.expect("No surface found for window.");
surface.configure(&self.device, &surface_configuration);
}