[Spice-devel] [PATCH 1/4] gl: ignore if mask has not bitmap
Marc-André Lureau
marcandre.lureau at gmail.com
Tue Sep 24 04:47:37 PDT 2013
Similar to how sw canvas ignore mask if !bitmap in canvas_mask_pixman().
---
common/gl_canvas.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/gl_canvas.c b/common/gl_canvas.c
index 2adc986..0736a08 100644
--- a/common/gl_canvas.c
+++ b/common/gl_canvas.c
@@ -207,7 +207,8 @@ static void set_mask(GLCanvas *canvas, SpiceQMask *mask, int x, int y)
{
pixman_image_t *image;
- if (!(image = canvas_get_mask(&canvas->base, mask, NULL))) {
+ if (!mask->bitmap ||
+ !(image = canvas_get_mask(&canvas->base, mask, NULL))) {
glc_clear_mask(canvas->glc, GLC_MASK_A);
return;
}
--
1.8.3.1
More information about the Spice-devel
mailing list