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 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel