mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Fix wasm build
This commit is contained in:
parent
2b5213c408
commit
aea1b3393d
1 changed files with 2 additions and 2 deletions
|
@ -1128,10 +1128,10 @@ impl GLFrame {
|
|||
}
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
GLRenderingPrimitive::DynamicPrimitive { primitive } => primitive
|
||||
(GLRenderingPrimitive::DynamicPrimitive { primitive }, var) => primitive
|
||||
.borrow()
|
||||
.as_ref()
|
||||
.map(|p| self.render_one_low_level_primitive(p, rendering_var, matrix))
|
||||
.map(|p| self.render_one_low_level_primitive(p, var, matrix))
|
||||
.unwrap_or(None),
|
||||
_ => panic!("Mismatch rendering variables"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue