internal/shaderir/glsl: bug fix: test failures with OpenGL

Updates #2186
This commit is contained in:
Hajime Hoshi 2022-07-09 02:43:46 +09:00
parent 7021086c07
commit a5179b9491

View File

@ -46,9 +46,9 @@ func opString(op shaderir.Op) string {
return ">"
case shaderir.GreaterThanEqualOp:
return ">="
case shaderir.EqualOp:
case shaderir.EqualOp, shaderir.VectorEqualOp:
return "=="
case shaderir.NotEqualOp:
case shaderir.NotEqualOp, shaderir.VectorNotEqualOp:
return "!="
case shaderir.And:
return "&"