diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-08-30 12:26:04 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-10-05 05:00:44 -0400 |
commit | 4f92ecde8290fd98572716f13c6eadf612a6a029 (patch) | |
tree | ceb2632e9793dd6d033354c82a1a6462ab6b1604 | |
parent | a289f812d62059d5aac92cbd374dcb7b03bb08a6 (diff) |
renderer_autocreate_with_drm_fd: Ensure fd isn't bogus
-rw-r--r-- | render/wlr_renderer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 523079a8..36837eda 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -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); } |