generated from lks/eframe_template_android
Fix wasm build
This commit is contained in:
parent
5cecec3f70
commit
f6f6a5b1ef
@ -10,7 +10,7 @@
|
|||||||
<title>eframe template</title>
|
<title>eframe template</title>
|
||||||
|
|
||||||
<!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization -->
|
<!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization -->
|
||||||
<link data-trunk rel="rust" data-target-name="eframe-template" data-wasm-opt="2" />
|
<link data-trunk rel="rust" data-target-name="waterfall" data-wasm-opt="2" />
|
||||||
<!-- this is the base url relative to which other urls will be constructed. trunk will insert this from the public-url option -->
|
<!-- this is the base url relative to which other urls will be constructed. trunk will insert this from the public-url option -->
|
||||||
<base data-trunk-public-url />
|
<base data-trunk-public-url />
|
||||||
|
|
||||||
|
|||||||
@ -217,7 +217,7 @@ impl Waterfall {
|
|||||||
gl.tex_image_2d(
|
gl.tex_image_2d(
|
||||||
TEXTURE_2D,
|
TEXTURE_2D,
|
||||||
0,
|
0,
|
||||||
if cfg!(target_os = "android") {
|
if cfg!(target_os = "android") || cfg!(target_arch = "wasm32") {
|
||||||
glow::RGB
|
glow::RGB
|
||||||
} else {
|
} else {
|
||||||
glow::SRGB
|
glow::SRGB
|
||||||
@ -250,6 +250,8 @@ impl Waterfall {
|
|||||||
}
|
}
|
||||||
"#,
|
"#,
|
||||||
r#"
|
r#"
|
||||||
|
precision mediump float;
|
||||||
|
|
||||||
out vec4 FragColor;
|
out vec4 FragColor;
|
||||||
|
|
||||||
in vec3 ourColor;
|
in vec3 ourColor;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user