renderer_autocreate_with_drm_fd: Ensure fd isn't bogus

master
Alexander Orzechowski 1 year ago
parent a289f812d6
commit 4f92ecde82

@ -424,6 +424,8 @@ out:
} }
struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd) { struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd) {
assert(drm_fd >= 0);
return renderer_autocreate(NULL, drm_fd); return renderer_autocreate(NULL, drm_fd);
} }

Loading…
Cancel
Save