Commit c10419b6 authored by Pierre-Loup A. Griffais's avatar Pierre-Loup A. Griffais Committed by Martin Flöser
Browse files

kwin-gles: save a branch in the main shader

On less flexible hardware, one instruction for one branch might not be a good
trade.

REVIEW: 102886
parent f0d8fce3
......@@ -11,9 +11,7 @@ varying vec2 varyingTexCoords;
void main() {
vec4 tex = texture2D(sampler, varyingTexCoords);
if (u_forceAlpha > 0) {
tex.a = 1.0;
}
tex.a += float(u_forceAlpha);
if( saturation != 1.0 ) {
vec3 desaturated = tex.rgb * vec3( 0.30, 0.59, 0.11 );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment