Fix wasm build

This commit is contained in:
2024-05-06 17:14:26 -04:00
parent 5cecec3f70
commit f6f6a5b1ef
2 changed files with 4 additions and 2 deletions

View File

@@ -217,7 +217,7 @@ impl Waterfall {
gl.tex_image_2d(
TEXTURE_2D,
0,
if cfg!(target_os = "android") {
if cfg!(target_os = "android") || cfg!(target_arch = "wasm32") {
glow::RGB
} else {
glow::SRGB
@@ -250,6 +250,8 @@ impl Waterfall {
}
"#,
r#"
precision mediump float;
out vec4 FragColor;
in vec3 ourColor;