From 94b59568b1073cb0dd8398163e5a826b031f93a8 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Wed, 22 Jun 2022 13:35:29 +0200 Subject: [PATCH] Fix include --- src/render/renderer/default_state.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/render/renderer/default_state.rs b/src/render/renderer/default_state.rs index 133af6f..d204f79 100644 --- a/src/render/renderer/default_state.rs +++ b/src/render/renderer/default_state.rs @@ -1,4 +1,6 @@ use cgmath::prelude::*; + +#[cfg(not(target_arch="wasm32"))] use rayon::prelude::*; use wgpu::{util::DeviceExt, Queue}; use winit::event::{DeviceEvent, ElementState, Event, KeyboardInput, MouseButton, WindowEvent}; @@ -122,8 +124,7 @@ impl super::State for DefaultState { &renderer.device, &renderer.queue, global_bind_layout.get_texture_bind_layout(), - )) - .unwrap(); + )).unwrap(); let light_uniform = LightUniform { position: [2.0, 2.0, 2.0],