diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index c32a32b6..546cad5f 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -414,6 +414,9 @@ static bool drm_connector_set_pending_fb(struct wlr_drm_connector *conn, } local_buf = drm_surface_blit(&plane->mgpu_surf, state->buffer); + if (local_buf == NULL) { + return false; + } } else { local_buf = wlr_buffer_lock(state->buffer); } |