diff options
author | 2022-11-10 14:43:38 -0800 | |
---|---|---|
committer | 2022-11-10 15:25:54 -0800 | |
commit | 365f37a3ae10e7aff407b84050f77da10820866e (patch) | |
tree | 471643b7f81019ef9cb0328c6d5ac6f4c625c90e /glow | |
parent | 23299a555f8b7e908a6a14915307792a7cf97b9a (diff) | |
download | iced-365f37a3ae10e7aff407b84050f77da10820866e.tar.gz iced-365f37a3ae10e7aff407b84050f77da10820866e.tar.bz2 iced-365f37a3ae10e7aff407b84050f77da10820866e.zip |
Added conditional configurations for WASM target for gradients & storage buffers, since storage buffers are not supported on wgpu WASM target at the moment.
Diffstat (limited to 'glow')
-rw-r--r-- | glow/src/triangle.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/glow/src/triangle.rs b/glow/src/triangle.rs index 0e27bcf2..cb7ab055 100644 --- a/glow/src/triangle.rs +++ b/glow/src/triangle.rs @@ -141,6 +141,7 @@ impl Pipeline { triangle::Style::Solid(color) => { self.programs.solid.use_program(gl, color, &transform); } + #[cfg(not(target_arch = "wasm32"))] triangle::Style::Gradient(gradient) => { self.programs .gradient |