From a841cc845f106f6adf1077e99f9b9a5074c3084f Mon Sep 17 00:00:00 2001 From: Viktor Zoutman Date: Mon, 16 Nov 2020 21:24:35 +0100 Subject: [PATCH] Update math_ext.rs --- crates/spirv-std/src/math_ext.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/spirv-std/src/math_ext.rs b/crates/spirv-std/src/math_ext.rs index c5b5495d9d..bab8afdefa 100644 --- a/crates/spirv-std/src/math_ext.rs +++ b/crates/spirv-std/src/math_ext.rs @@ -78,7 +78,7 @@ impl MathExt for f32 { } fn fract(self) -> f32 { - self - self.trunc() + self - self.floor() } fn signum(self) -> f32 {