From b30e382af9f3b677c837d5c766dfe6f581cbdd8f Mon Sep 17 00:00:00 2001 From: Samuel Cobb Date: Thu, 25 Jul 2024 16:27:18 +0100 Subject: [PATCH] remove newFd Reference --- flake.lock | 6 +++--- src/allocator/GBM.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index d87fd1b..a3a5a77 100644 --- a/flake.lock +++ b/flake.lock @@ -48,11 +48,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1721138476, - "narHash": "sha256-+W5eZOhhemLQxelojLxETfbFbc19NWawsXBlapYpqIA=", + "lastModified": 1721743106, + "narHash": "sha256-adRZhFpBTnHiK3XIELA3IBaApz70HwCYfv7xNrHjebA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ad0b5eed1b6031efaed382844806550c3dcb4206", + "rev": "dc14ed91132ee3a26255d01d8fd0c1f5bff27b2f", "type": "github" }, "original": { diff --git a/src/allocator/GBM.cpp b/src/allocator/GBM.cpp index 5b588c5..cd2d280 100644 --- a/src/allocator/GBM.cpp +++ b/src/allocator/GBM.cpp @@ -243,7 +243,7 @@ SP Aquamarine::CGBMAllocator::create(int drmfd_, Hyprutils::Memor } Aquamarine::CGBMAllocator::CGBMAllocator(int fd_, Hyprutils::Memory::CWeakPointer backend_) : fd(fd_), backend(backend_) { - gbmDevice = gbm_create_device(newFd); + gbmDevice = gbm_create_device(fd_); if (!gbmDevice) { backend->log(AQ_LOG_ERROR, std::format("Couldn't open a GBM device at fd {}", fd_)); return;