From f6f6a5b1effb9eb9a96da76a034d1363d8893249 Mon Sep 17 00:00:00 2001 From: Lucas Schumacher Date: Mon, 6 May 2024 17:14:26 -0400 Subject: [PATCH] Fix wasm build --- index.html | 2 +- src/app/waterfall.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e0c5c29..59dd421 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ eframe template - + diff --git a/src/app/waterfall.rs b/src/app/waterfall.rs index bfbd1c1..d33524a 100644 --- a/src/app/waterfall.rs +++ b/src/app/waterfall.rs @@ -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;