mirror of
https://github.com/labwc/labwc.git
synced 2026-04-03 07:15:34 -04:00
parent
12987307a5
commit
541cb1b15a
1 changed files with 4 additions and 0 deletions
|
|
@ -85,6 +85,10 @@ render_thumb(struct output *output, struct view *view)
|
|||
struct wlr_buffer *buffer = wlr_allocator_create_buffer(server->allocator,
|
||||
view->current.width, view->current.height,
|
||||
&output->wlr_output->swapchain->format);
|
||||
if (!buffer) {
|
||||
wlr_log(WLR_ERROR, "failed to allocate buffer for thumbnail");
|
||||
return NULL;
|
||||
}
|
||||
struct wlr_render_pass *pass = wlr_renderer_begin_buffer_pass(
|
||||
server->renderer, buffer, NULL);
|
||||
render_node(server, pass, &view->content_tree->node, 0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue