From 05995dd21e702d5573d1c32b229e84191a32d74d Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 8 Jul 2024 23:04:12 +0200 Subject: [PATCH] drm: reset boHandles after freed in fb --- src/backend/drm/DRM.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 9d84a0b..db086a8 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1569,6 +1569,8 @@ void Aquamarine::CDRMFB::closeHandles() { if (drmCloseBufferHandle(backend->gpu->fd, boHandles.at(i))) backend->backend->log(AQ_LOG_ERROR, "drm: drmCloseBufferHandle failed"); } + + boHandles = {0, 0, 0, 0}; } void Aquamarine::CDRMFB::drop() {