summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/int64.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/int64.glsl')
-rw-r--r--src/compiler/glsl/int64.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/int64.glsl b/src/compiler/glsl/int64.glsl
index b1036e379c9..1ac8d128ac3 100644
--- a/src/compiler/glsl/int64.glsl
+++ b/src/compiler/glsl/int64.glsl
@@ -115,7 +115,7 @@ imod64(ivec2 _n, ivec2 _d)
uvec2 n = unpackUint2x32(uint64_t(abs(packInt2x32(_n))));
uvec2 d = unpackUint2x32(uint64_t(abs(packInt2x32(_d))));
- uvec2 rem = udivmod64(n, d).zy;
+ uvec2 rem = udivmod64(n, d).zw;
return negate ? unpackInt2x32(-int64_t(packUint2x32(rem))) : ivec2(rem);
}