diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-28 11:53:11 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-12-31 08:07:44 -0700 |
commit | 346b43e937340423901502fccb30f397e93efd5f (patch) | |
tree | 675e511a061edd82ba901757c6a6a1047c28c2dd /include | |
parent | a9b1d9e83854eb589978e4d8bea9198f1198a45f (diff) |
render: guard rendering operations between begin() and end()
Add a wlr_renderer.rendering bool, set it to true between
wlr_renderer_begin() and wlr_renderer_end(). Assert we're rendering when
calling functions that render.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/render/wlr_renderer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index 522ce738..54e6506e 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -25,6 +25,8 @@ struct wlr_drm_format_set; struct wlr_renderer { const struct wlr_renderer_impl *impl; + bool rendering; + struct { struct wl_signal destroy; } events; |