diff options
author | emersion <contact@emersion.fr> | 2018-05-31 12:33:27 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-05-31 12:33:27 +0100 |
commit | 21928cbe615184a81d157ccc68e503282efff83c (patch) | |
tree | e2523e48aadc69a109909ee37af18c76d88e4859 /render/dmabuf.c | |
parent | c844eaa1b32894417263ce2b5030033bdd7c7851 (diff) | |
parent | 32013abae63f1c31598ac716acd7e73c24fadae1 (diff) |
Merge branch 'master' into screencontent
Diffstat (limited to 'render/dmabuf.c')
-rw-r--r-- | render/dmabuf.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/render/dmabuf.c b/render/dmabuf.c new file mode 100644 index 00000000..6b500748 --- /dev/null +++ b/render/dmabuf.c @@ -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; +} |