Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - get proper texture format after the renderer is initialized, fix #3897 #5413

Closed

Commits on Sep 30, 2022

  1. # 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 bevyengine#3897
    
    ## Solution
    
    Make `initialize_renderer` expose `wgpu::Adapter` and `first_available_texture_format`, use the `first_available_texture_format` by default.
    
    ## Changelog
    
    * Fixed bevyengine#3897
    VitalyAnkh committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    f32e152 View commit details
    Browse the repository at this point in the history