diff --git a/crates/bevy_winit/src/cursor.rs b/crates/bevy_winit/src/cursor.rs index 63e298c0c0..9cc2639091 100644 --- a/crates/bevy_winit/src/cursor.rs +++ b/crates/bevy_winit/src/cursor.rs @@ -154,7 +154,11 @@ fn update_cursors( CursorSource::Custom((cache_key, source)) } } - #[cfg(all(target_family = "wasm", target_os = "unknown"))] + #[cfg(all( + feature = "custom_cursor", + target_family = "wasm", + target_os = "unknown" + ))] CursorIcon::Custom(CustomCursor::Url { url, hotspot }) => { let cache_key = CustomCursorCacheKey::Url(url.clone());