Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
renderer: create pixman renderer if getting drm fd failed
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ckb0ne committed Apr 17, 2021
1 parent 4f5839f commit 1b64728
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion render/wlr_renderer.c
Expand Up @@ -250,7 +250,8 @@ struct wlr_renderer *wlr_renderer_autocreate(struct wlr_backend *backend) {
int drm_fd = wlr_backend_get_drm_fd(backend);
if (drm_fd < 0) {
wlr_log(WLR_ERROR, "Failed to get DRM FD from backend");
return NULL;
wlr_log(WLR_INFO, "Falling back on pixman renderer");
return wlr_pixman_renderer_create();
}

return wlr_renderer_autocreate_with_drm_fd(drm_fd);
Expand Down

0 comments on commit 1b64728

Please sign in to comment.