Skip to content

Commit 871b47f

Browse files
authored
let user disable feature png when using only other format (#1156)
1 parent adb249c commit 871b47f

File tree

1 file changed

+14
-2
lines changed
  • crates/bevy_render/src/texture

1 file changed

+14
-2
lines changed

crates/bevy_render/src/texture/mod.rs

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#[cfg(feature = "hdr")]
22
mod hdr_texture_loader;
3-
#[cfg(feature = "png")]
3+
#[cfg(any(
4+
feature = "png",
5+
feature = "dds",
6+
feature = "tga",
7+
feature = "jpeg",
8+
feature = "bmp"
9+
))]
410
mod image_texture_loader;
511
mod sampler_descriptor;
612
#[allow(clippy::module_inception)]
@@ -10,7 +16,13 @@ mod texture_dimension;
1016

1117
#[cfg(feature = "hdr")]
1218
pub use hdr_texture_loader::*;
13-
#[cfg(feature = "png")]
19+
#[cfg(any(
20+
feature = "png",
21+
feature = "dds",
22+
feature = "tga",
23+
feature = "jpeg",
24+
feature = "bmp"
25+
))]
1426
pub use image_texture_loader::*;
1527
pub use sampler_descriptor::*;
1628
pub use texture::*;

0 commit comments

Comments
 (0)