renderer: create pixman renderer if getting drm fd failed

This commit is contained in:
Simon Zeni 2021-04-15 16:22:27 -04:00 committed by Simon Ser
parent 0d90dddfab
commit 122d6c6988
1 changed files with 2 additions and 1 deletions

View File

@ -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);