renderer_autocreate_with_drm_fd: Ensure fd isn't bogus

This commit is contained in:
Alexander Orzechowski 2023-08-30 12:26:04 -04:00
parent a289f812d6
commit 4f92ecde82
1 changed files with 2 additions and 0 deletions

View File

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