[g3dvl] rgba surfaces are clearing if the alpha channel is one
authorChristian König <deathsimple@vodafone.de>
Sat, 7 May 2011 12:49:58 +0000 (14:49 +0200)
committerChristian König <deathsimple@vodafone.de>
Sat, 7 May 2011 12:49:58 +0000 (14:49 +0200)
src/gallium/auxiliary/vl/vl_compositor.c

index 74512c1d40ab66d4e38fa09a14b3d1f2a6036b6e..83c9363721976aaefde35c754090f44bbea9ea38 100644 (file)
@@ -645,7 +645,7 @@ vl_compositor_set_rgba_layer(struct pipe_video_compositor *compositor,
    assert(layer < VL_COMPOSITOR_MAX_LAYERS);
 
    c->used_layers |= 1 << layer;
-   c->layers[layer].clearing = false;
+   c->layers[layer].clearing = rgba->swizzle_a == PIPE_SWIZZLE_ONE;
    c->layers[layer].fs = c->fs_rgba;
    c->layers[layer].samplers[0] = c->sampler_linear;
    c->layers[layer].samplers[1] = NULL;