diff --git a/internal/shader/expr.go b/internal/shader/expr.go index 9362e3579..706c9a7b2 100644 --- a/internal/shader/expr.go +++ b/internal/shader/expr.go @@ -58,7 +58,7 @@ func isValidForModOp(lhs, rhs *shaderir.Expr, lhst, rhst shaderir.Type) bool { if s.Const == nil { return false } - if s.ConstType == shaderir.ConstTypeInt { + if s.Const.Kind() == gconstant.Int { return true } if canTruncateToInteger(s.Const) {