summaryrefslogtreecommitdiff
path: root/graphics/src/render.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/render.rs')
-rw-r--r--graphics/src/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs
index cbeb613..1c10f57 100644
--- a/graphics/src/render.rs
+++ b/graphics/src/render.rs
@@ -58,7 +58,7 @@ macro_rules! draw_text {
macro_rules! load_texture {
($handle:expr, $thread:expr, $filepath:expr) => {
- if cfg!(feature = "static") {
+ if cfg!(any(feature = "static", target_arch = "wasm32")) {
let bytes = include_bytes!(concat!("../../", $filepath));
let image = ::raylib::texture::Image::load_image_from_mem(".bmp", bytes)?;
$handle.load_texture_from_image($thread, &image)?