Skip to content

Commit 8697ec5

Browse files
committed
glinject: Use array for modifiers
1 parent 4bcd341 commit 8697ec5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/glinject.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,11 +894,13 @@ static bool gl_shtex_init()
894894
hlog("Failed to create EGL image");
895895
goto fail;
896896
}
897-
const int queried = egl_f.ExportDMABUFImageQueryMESA(data.display, data.image, &data.buf_fourcc, &data.nfd, &data.buf_modifier);
897+
uint64_t modifiers[4];
898+
const int queried = egl_f.ExportDMABUFImageQueryMESA(data.display, data.image, &data.buf_fourcc, &data.nfd, modifiers);
898899
if (!queried) {
899900
hlog("Failed to query dmabuf export");
900901
goto fail;
901902
}
903+
data.buf_modifier = modifiers[0];
902904
const int exported = egl_f.ExportDMABUFImageMESA(data.display, data.image, data.buf_fds, data.buf_strides, data.buf_offsets);
903905
if (!exported) {
904906
hlog("Failed dmabuf export");

0 commit comments

Comments
 (0)