mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
render: make wlr_renderer_begin return a bool
This commit is contained in:
parent
23540b5579
commit
a541c9510a
2 changed files with 12 additions and 4 deletions
|
|
@ -49,8 +49,10 @@ struct wlr_renderer *wlr_renderer_autocreate(struct wlr_backend *backend);
|
|||
*
|
||||
* This should be called after wlr_output_attach_render(). Compositors must call
|
||||
* wlr_renderer_end() when they are done.
|
||||
*
|
||||
* Returns false on failure, in which case compositors shouldn't try rendering.
|
||||
*/
|
||||
void wlr_renderer_begin(struct wlr_renderer *r, uint32_t width, uint32_t height);
|
||||
bool wlr_renderer_begin(struct wlr_renderer *r, uint32_t width, uint32_t height);
|
||||
/**
|
||||
* Start a render pass on the provided struct wlr_buffer.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue