# Objective There is no Srgb support on some GPU and display protocols with `winit` (for example, Nvidia's GPUs with Wayland). Thus `TextureFormat::bevy_default()` which returns `Rgba8UnormSrgb` or `Bgra8UnormSrgb` will cause panics on such platforms. This patch will resolve this problem. Fix https://github.com/bevyengine/bevy/issues/3897. ## Solution Make `initialize_renderer` expose `wgpu::Adapter` and `first_available_texture_format`, use the `first_available_texture_format` by default. ## Changelog * Fixed https://github.com/bevyengine/bevy/issues/3897. |
||
|---|---|---|
| .. | ||
| flex | ||
| render | ||
| widget | ||
| entity.rs | ||
| focus.rs | ||
| geometry.rs | ||
| lib.rs | ||
| ui_node.rs | ||
| update.rs | ||