From 4c81cf04f2d131249dfe9567ed4621613d589e52 Mon Sep 17 00:00:00 2001 From: Nigel Ihza Firdausy <106657905+Ni-zav@users.noreply.github.com> Date: Sun, 11 Oct 2026 11:07:36 +0700 Subject: [PATCH] fix(effects): use portable WGSL discriminant guard --- crates/gpu/src/shaders/fx_transition.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpu/src/shaders/fx_transition.wgsl b/crates/gpu/src/shaders/fx_transition.wgsl index ba3af854..379b6446 100644 --- a/crates/gpu/src/shaders/fx_transition.wgsl +++ b/crates/gpu/src/shaders/fx_transition.wgsl @@ -713,7 +713,7 @@ fn ftr_cylinder(@builtin(global_invocation_id) gid: vec3) { let da = dot(d, axis.xy); let bq = -da * axis.z; let disc = bq * bq - a * (dot(d, d) - da * da - P.f[0].z * P.f[0].z); - if (a <= 1e-10 || !(disc > 0.0) || !isFinite(disc)) { + if (a <= 1e-10 || !(disc > 0.0)) { textureStore(out, p, vec4(0.0)); return; }