mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
mmap shm buffers read/write
This commit is contained in:
parent
761af3ab0a
commit
92d61f13b9
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue