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 25, 2024
1 parent 87683c3 commit 34cf190
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 34cf190

Please sign in to comment.