0f37907ac7
This CL is conceptually a revert of http://review.skia.org/320258, although the code has changed shape a bit since that CL was landed. This fix was too aggressive, and can lead to functions being dead- stripped while they still have an active reference. Change-Id: I6ce8b0ad9cc2a42e8be8cb10d3a8219149eca6aa Bug: skia:10776 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/325462 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
17 lines
255 B
GLSL
17 lines
255 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
in vec4 src;
|
|
in vec4 dst;
|
|
vec4 blend_plus(vec4 src, vec4 dst) {
|
|
return min(src + dst, 1.0);
|
|
}
|
|
void main() {
|
|
vec4 _0_blend_plus;
|
|
{
|
|
_0_blend_plus = min(src + dst, 1.0);
|
|
}
|
|
|
|
sk_FragColor = _0_blend_plus;
|
|
|
|
}
|