summaryrefslogtreecommitdiff
path: root/src/sna/sna_accel.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-02-06 10:13:41 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-02-06 10:13:41 +0000
commit823382d28944a319c207f20ecef25ce1707a8021 (patch)
treea6b4eddcbb52ed3587b626e39b364c428f3205b5 /src/sna/sna_accel.c
parent6fc46adb18a8410074c12d6e8979ef01813ebdf2 (diff)
sna: And clear drawable->id on reused pixmaps
References: https://bugs.freedesktop.org/show_bug.cgi?id=74550 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r--src/sna/sna_accel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 457cc418..39199972 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -870,10 +870,11 @@ create_pixmap_hdr(struct sna *sna, ScreenPtr screen,
assert(pixmap->drawable.type == DRAWABLE_PIXMAP);
assert(pixmap->drawable.class == 0);
assert(pixmap->drawable.pScreen == screen);
- assert(pixmap->drawable.id == 0);
assert(pixmap->drawable.x == 0);
assert(pixmap->drawable.y == 0);
+ pixmap->drawable.id = 0;
+
pixmap->drawable.depth = depth;
pixmap->drawable.bitsPerPixel = bits_per_pixel(depth);
pixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER;