mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Merge branch 'master' into screencontent
This commit is contained in:
commit
21928cbe61
39 changed files with 163 additions and 144 deletions
10
render/dmabuf.c
Normal file
10
render/dmabuf.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include <unistd.h>
|
||||
#include <wlr/render/dmabuf.h>
|
||||
|
||||
void wlr_dmabuf_attributes_finish( struct wlr_dmabuf_attributes *attribs) {
|
||||
for (int i = 0; i < attribs->n_planes; ++i) {
|
||||
close(attribs->fd[i]);
|
||||
attribs->fd[i] = -1;
|
||||
}
|
||||
attribs->n_planes = 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue