diff options
-rw-r--r-- | backend/drm/drm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 7153761a..6978c22c 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -928,7 +928,9 @@ static bool drm_connector_set_cursor(struct wlr_output *output, return false; } - drm_surface_make_current(&plane->surf, NULL); + if (!drm_surface_make_current(&plane->surf, NULL)) { + return false; + } struct wlr_renderer *rend = plane->surf.renderer->wlr_rend; |