summaryrefslogtreecommitdiff
path: root/src/sna
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-12-03 12:10:01 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-12-03 12:10:01 +0000
commit3dbf17f00e200e864818b0b8ca762183cff9085f (patch)
tree8879221131371d2d0ffe56cf742f6bd57815288f /src/sna
parent5a353ed151d175a757af6f8d5216bf2370dd3917 (diff)
sna: Mark up an ordinary pixmap for reuse
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r--src/sna/sna_accel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index e42b85da..622d87b3 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1309,6 +1309,7 @@ static PixmapPtr sna_create_pixmap(ScreenPtr screen,
priv->stride = pad;
priv->create = flags;
priv->ptr = ptr;
+ priv->header = ptr == NULL;
assert(to_sna_from_pixmap(pixmap) == sna);
assert(pixmap->drawable.pScreen == screen);