projects
/
profile
/
ivi
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
761af3a
)
mmap shm buffers read/write
author
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 2 May 2011 18:48:48 +0000
(14:48 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 2 May 2011 18:48:48 +0000
(14:48 -0400)
wayland/wayland-shm.c
patch
|
blob
|
history
diff --git
a/wayland/wayland-shm.c
b/wayland/wayland-shm.c
index
ccdae1c
..
5f46293
100644
(file)
--- a/
wayland/wayland-shm.c
+++ b/
wayland/wayland-shm.c
@@
-140,7
+140,8
@@
shm_create_buffer(struct wl_client *client, struct wl_shm *shm,
return;
}
- data = mmap(NULL, stride * height, PROT_READ, MAP_SHARED, fd, 0);
+ data = mmap(NULL, stride * height,
+ PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
close(fd);
if (data == MAP_FAILED) {