skia2/tests/sksl/shared/DoubleNegation.glsl
Ethan Nicholas b47a67ab75 Fixed SkSL positioning error with double negation
We were not propagating the position into a double-negated expression,
leading to an assertion failure in PrefixExpression.

Change-Id: I1970ff1a06d9631582626c68e151f12f6b3ef278
Bug: oss-fuzz:46381
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/527507
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-04-05 17:10:23 +00:00

7 lines
137 B
GLSL

out vec4 sk_FragColor;
uniform vec4 colorGreen;
vec4 main() {
return vec4(float(int(colorGreen.x)), colorGreen.y, colorGreen.zw);
}