mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 09:59:48 +01:00
renderer_autocreate_with_drm_fd: Ensure fd isn't bogus
This commit is contained in:
parent
a289f812d6
commit
4f92ecde82
1 changed files with 2 additions and 0 deletions
|
@ -424,6 +424,8 @@ out:
|
|||
}
|
||||
|
||||
struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd) {
|
||||
assert(drm_fd >= 0);
|
||||
|
||||
return renderer_autocreate(NULL, drm_fd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue