aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-04-15 16:22:27 -0400
committerSimon Ser <contact@emersion.fr>2021-04-17 09:54:39 +0200
commit122d6c6988a992a7f41f5b1389d0ac6b49f11888 (patch)
tree1053b5f0282e9a6c6e3846c38f9e26be66e1dbd0
parent0d90dddfab48a12a7519c11c6062b717ca3b7581 (diff)
renderer: create pixman renderer if getting drm fd failed
-rw-r--r--render/wlr_renderer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c
index 6aee5ac3..d520475d 100644
--- a/render/wlr_renderer.c
+++ b/render/wlr_renderer.c
@@ -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);