summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-05-15 21:50:41 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-05-16 10:02:16 +0100
commit10c18b1a4631ebab5508f4308c73129f2111e964 (patch)
tree61c5675bffe9545e307ba994f59a1375dcba7e9d /tools
parentb21fc65b23fcbb2b9a04eb92e3719d88e2d026dc (diff)
intel-virtual-output: Mark the source SHMPixmap as writeable
This is fortunately a no-op, as it gets initialized to zero already (that is the pixmap is writeable). However, we may as well do the right thing... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index d7929573..d1076174 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -967,7 +967,7 @@ static int clone_init_xfer(struct clone *clone)
if (clone->src.use_shm) {
clone->src.shm = clone->shm;
- clone->dst.shm.readOnly = False;
+ clone->src.shm.readOnly = False;
XShmAttach(clone->src.dpy, &clone->src.shm);
XSync(clone->src.dpy, False);
}