diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-01 23:23:51 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-01 23:23:51 +0000 |
| commit | 8df82938b0549d0c5820ce258f0097a0370e75ea (patch) | |
| tree | 94270df4b9b9bfc272f92bffc391d2c5e57f1803 /shm.c | |
| parent | shm: add debug logging of how large the allocated memory buffer is (diff) | |
shm: get_buffer(): remove 'copies' argument; it's not used
Diffstat (limited to 'shm.c')
| -rw-r--r-- | shm.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -31,10 +31,8 @@ static const struct wl_buffer_listener buffer_listener = { }; struct buffer * -shm_get_buffer(struct wl_shm *shm, int width, int height, size_t copies) +shm_get_buffer(struct wl_shm *shm, int width, int height) { - assert(copies >= 1); - tll_foreach(buffers, it) { if (it->item.width != width || it->item.height != height) continue; |
