mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
fix building cargo_gltf with feature dds (#14360)
# Objective - Building bevy_gltf with feature dds fails: ``` > cargo build -p bevy_gltf --features dds Compiling bevy_core_pipeline v0.15.0-dev (crates/bevy_core_pipeline) error[E0061]: this function takes 7 arguments but 6 arguments were supplied --> crates/bevy_core_pipeline/src/tonemapping/mod.rs:442:5 | 442 | Image::from_buffer( | ^^^^^^^^^^^^^^^^^^ ... 445 | bytes, | ----- an argument of type `std::string::String` is missing | note: associated function defined here --> crates/bevy_render/src/texture/image.rs:709:12 | 709 | pub fn from_buffer( | ^^^^^^^^^^^ help: provide the argument | 442 | Image::from_buffer(/* std::string::String */, bytes, image_type, CompressedImageFormats::NONE, false, image_sampler, RenderAssetUsages::RENDER_WORLD) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ For more information about this error, try `rustc --explain E0061`. error: could not compile `bevy_core_pipeline` (lib) due to 1 previous error ``` - If you're fixing a specific issue, say "Fixes #X". ## Solution - enable dds feature in bevy_core_pipeline ## Testing - `cargo build -p bevy_gltf --features dds`
This commit is contained in:
parent
7fb927f725
commit
c0b35d07f3
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0"
|
|||
keywords = ["bevy"]
|
||||
|
||||
[features]
|
||||
dds = ["bevy_render/dds"]
|
||||
dds = ["bevy_render/dds", "bevy_core_pipeline/dds"]
|
||||
pbr_transmission_textures = ["bevy_pbr/pbr_transmission_textures"]
|
||||
pbr_multi_layer_material_textures = []
|
||||
pbr_anisotropy_texture = []
|
||||
|
|
Loading…
Reference in a new issue