mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-26 14:18:36 +00:00
gl: ignore if mask has not bitmap
Similar to how sw canvas ignore mask if !bitmap in canvas_mask_pixman().
This commit is contained in:
parent
f88e851ed6
commit
370ba35339
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user