diff options
Diffstat (limited to 'src/sna/gen2_render.c')
-rw-r--r-- | src/sna/gen2_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c index 698ed99b..a4788177 100644 --- a/src/sna/gen2_render.c +++ b/src/sna/gen2_render.c @@ -1564,7 +1564,7 @@ gen2_composite_picture(struct sna *sna, x + w < pixmap->drawable.width && y + h < pixmap->drawable.height)) { struct sna_pixmap *priv = sna_pixmap(pixmap); - if (priv->clear) { + if (priv && priv->clear) { DBG(("%s: converting large pixmap source into solid [%08x]\n", __FUNCTION__, priv->clear_color)); return gen2_composite_solid_init(sna, channel, priv->clear_color); } |