mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
renderer: create pixman renderer if getting drm fd failed
This commit is contained in:
parent
0d90dddfab
commit
122d6c6988
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue