Skip to content

Commit

Permalink
let user disable feature png when using only other format (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf authored Dec 28, 2020
1 parent adb249c commit 871b47f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions crates/bevy_render/src/texture/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#[cfg(feature = "hdr")]
mod hdr_texture_loader;
#[cfg(feature = "png")]
#[cfg(any(
feature = "png",
feature = "dds",
feature = "tga",
feature = "jpeg",
feature = "bmp"
))]
mod image_texture_loader;
mod sampler_descriptor;
#[allow(clippy::module_inception)]
Expand All @@ -10,7 +16,13 @@ mod texture_dimension;

#[cfg(feature = "hdr")]
pub use hdr_texture_loader::*;
#[cfg(feature = "png")]
#[cfg(any(
feature = "png",
feature = "dds",
feature = "tga",
feature = "jpeg",
feature = "bmp"
))]
pub use image_texture_loader::*;
pub use sampler_descriptor::*;
pub use texture::*;
Expand Down

0 comments on commit 871b47f

Please sign in to comment.