gl renderer: Fix coloring shader

We *just* pre-multiplied u_color but then didn't use its rgb values.
This fixes backdrop scale marks in Adwaita to not be white.
This commit is contained in:
Timm Bäder 2019-05-06 17:58:55 +02:00
parent 3e2107846d
commit 4869013a8d

View File

@ -8,7 +8,8 @@ void main() {
color.rgb *= color.a;
// u_source is drawn using cairo, so already pre-multiplied.
color = vec4(u_color.rgb * diffuse.a * u_alpha, diffuse.a * color.a * u_alpha);
color = vec4(color.rgb * diffuse.a * u_alpha,
color.a * diffuse.a * u_alpha);
setOutputColor(color);
}