clients: screenshot: allow dma-buf screenshots for framebuffer source

In the last commit we've added support for dma-buf screenshots in our
GL-renderer. So let's enable the screenshot client to use it.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
Leandro Ribeiro 2026-02-13 15:33:38 -03:00
parent c092f500e0
commit b4c4dfb7e4

View file

@ -671,11 +671,6 @@ main(int argc, char *argv[])
fprintf(stderr, "Error: display does not support weston_capture_v1\n");
return -1;
}
if (app.src_type == WESTON_CAPTURE_V1_SOURCE_FRAMEBUFFER &&
app.buffer_type != CLIENT_BUFFER_TYPE_SHM) {
fprintf(stderr, "Error: Only support shm buffer with framebuffer source\n");
return -1;
}
if(app.buffer_type == CLIENT_BUFFER_TYPE_SHM && !app.shm) {
fprintf(stderr, "Error: display does not support wl_shm\n");