mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
parent
a5af8f3b0b
commit
12e60b7273
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user