Skip to content

Commit

Permalink
drm: reset boHandles after freed in fb
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 8, 2024
1 parent 3c11851 commit 05995dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 05995dd

Please sign in to comment.