mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04: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…
Add table
Add a link
Reference in a new issue