summaryrefslogtreecommitdiff
path: root/src/sna/gen4_render.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/gen4_render.c')
-rw-r--r--src/sna/gen4_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c
index 9994bf57..ee96f6cc 100644
--- a/src/sna/gen4_render.c
+++ b/src/sna/gen4_render.c
@@ -1591,7 +1591,7 @@ gen4_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 gen4_channel_init_solid(sna, channel, priv->clear_color);
}