aboutsummaryrefslogtreecommitdiff
path: root/render/dmabuf.c
blob: 6b5007486c009305c5a072d1cdfdcce28bc6c959 (plain)
1
2
3
4
5
6
7
8
9
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;
}