drm: fix missing flag in drmModeAddFB2WithModifiers call
That's a nice footgun right here.
This commit is contained in:
parent
7633401874
commit
36c8b983ee
1 changed files with 1 additions and 1 deletions
|
@ -739,7 +739,7 @@ uint32_t drm_fbid_from_dmabuf( struct drm_t *drm, struct wlr_buffer *buf, struct
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( drmModeAddFB2WithModifiers( drm->fd, dma_buf->width, dma_buf->height, dma_buf->format, handles, dma_buf->stride, dma_buf->offset, modifiers, &fb_id, 0 ) != 0 )
|
if ( drmModeAddFB2WithModifiers( drm->fd, dma_buf->width, dma_buf->height, dma_buf->format, handles, dma_buf->stride, dma_buf->offset, modifiers, &fb_id, DRM_MODE_FB_MODIFIERS ) != 0 )
|
||||||
{
|
{
|
||||||
perror("drmModeAddFB2WithModifiers failed");
|
perror("drmModeAddFB2WithModifiers failed");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue