diff options
author | Simon Ser <contact@emersion.fr> | 2023-01-20 23:11:22 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-01-21 14:16:21 +0100 |
commit | 36f627d0fadf1d00e45662359246dad9a40c7a7f (patch) | |
tree | 7d5eff0f8890edc933bf35cc06896d61228e8db6 /sway/commands/input | |
parent | a7b9f6fedc8e625b9c950f43cad36cfc8fc6734c (diff) |
Check return value of wlr_renderer_begin()
Since [1], wlr_renderer_begin() can fail. Check its return value
and bail.
This fixes an assertion error (when begin() fails and then we try
to render something) after a GPU reset.
[1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/a541c9510a4cf544313bc9b0503d75820b42444e
Diffstat (limited to 'sway/commands/input')
0 files changed, 0 insertions, 0 deletions