backend/drm: Remove call to CRTC realloc on scan

After a connector scan, new connectors might have appeared and old ones
gone away. At this point, old CRTC allocations are already gone, while
new allocations are not yet needed. Skip the call.
This commit is contained in:
Kenny Levinsen 2024-09-06 21:43:33 +02:00 committed by Simon Zeni
parent 9f7ab85718
commit 96ad414ec9

View File

@ -1811,8 +1811,6 @@ void scan_drm_connectors(struct wlr_drm_backend *drm,
destroy_drm_connector(conn); destroy_drm_connector(conn);
} }
realloc_crtcs(drm, NULL);
for (size_t i = 0; i < new_outputs_len; ++i) { for (size_t i = 0; i < new_outputs_len; ++i) {
struct wlr_drm_connector *conn = new_outputs[i]; struct wlr_drm_connector *conn = new_outputs[i];