Skip to content

Commit

Permalink
renderer: report present errors
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed May 24, 2024
1 parent b2bc5a1 commit fcfa63e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fcfa63e

Please sign in to comment.