[PATCH xserver 3/4] glamor: remove unused variables in linear gradient shader

Jeff Smith whydoubt at gmail.com
Fri Jan 26 12:25:21 UTC 2018


Signed-off-by: Jeff Smith <whydoubt at gmail.com>
---
 glamor/glamor_gradient.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/glamor/glamor_gradient.c b/glamor/glamor_gradient.c
index bb024ae4c..864340e77 100644
--- a/glamor/glamor_gradient.c
+++ b/glamor/glamor_gradient.c
@@ -465,13 +465,6 @@ _glamor_create_linear_gradient_program(ScreenPtr screen, int stops_count,
 	    "    float _p1_distance;\n"\
 	    "    float _pt_distance;\n"\
 	    "    float y_dist;\n"\
-	    "    float stop_after;\n"\
-	    "    float stop_before;\n"\
-	    "    vec4 stop_color_before;\n"\
-	    "    vec4 stop_color_after;\n"\
-	    "    float new_alpha; \n"\
-	    "    vec4 gradient_color;\n"\
-	    "    float percentage; \n"\
 	    "    vec3 source_texture_trans = transform_mat * tmp;\n"\
 	    "    \n"\
 	    "    if(hor_ver == 0) { \n" /*Normal case.*/\
-- 
2.14.3



More information about the xorg-devel mailing list