st/vega: Remove unused variable.
authorVinson Lee <vlee@freedesktop.org>
Sat, 18 Feb 2012 08:32:53 +0000 (00:32 -0800)
committerVinson Lee <vlee@freedesktop.org>
Sat, 18 Feb 2012 19:09:27 +0000 (11:09 -0800)
Fixes this GCC warning.
mask.c: In function ‘mask_layer_fill’:
mask.c:387:12: warning: variable ‘alpha_color’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/state_trackers/vega/mask.c

index 1280ea9dc8ead6abfb33931187fd5ac85064c762..89bff6ede1b35bd5389719148525fb5d18eef0a4 100644 (file)
@@ -384,10 +384,6 @@ void mask_layer_fill(struct vg_mask_layer *layer,
                      VGint width, VGint height,
                      VGfloat value)
 {
-   VGfloat alpha_color[4] = {0, 0, 0, 0};
-
-   alpha_color[3] = value;
-
    mask_resource_fill(layer->sampler_view->texture,
                       x, y, width, height, value);
 }