Reorder the fields of App so renderer is declared before window. Rust drops struct fields in declaration order, and the renderer owns a Vulkan surface tied to the window's display-server handle; tearing the window down first leaves the surface dangling when Renderer::drop runs. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||