1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-04-21 18:03:02 -04:00

renderer: report present errors

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-05-23 19:44:23 +01:00
parent bbde4bb1ab
commit 9c4f62cd24
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -648,8 +648,8 @@ bool renderer_render(struct renderer *r, struct backend_base *backend,
pixman_region32_fini(&region);
}
if (backend->ops->present) {
backend->ops->present(backend);
if (backend->ops->present && !backend->ops->present(backend)) {
log_warn("Failed to present the frame");
}
// "Un-cull" the render commands, so later damage calculation using those commands