summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvnflinger/ui
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2023-12-30 23:08:55 +0100
committerLiam <byteslice@airmail.cc>2024-01-19 03:12:30 +0100
commitb0bca0f8b04de630f9dec47cff14a640d40f65db (patch)
treec1723cc631a573340e1393aa81939fa1ce5dfad0 /src/core/hle/service/nvnflinger/ui
parentSMMU: Add continuity tracking optimization. (diff)
downloadyuzu-b0bca0f8b04de630f9dec47cff14a640d40f65db.tar
yuzu-b0bca0f8b04de630f9dec47cff14a640d40f65db.tar.gz
yuzu-b0bca0f8b04de630f9dec47cff14a640d40f65db.tar.bz2
yuzu-b0bca0f8b04de630f9dec47cff14a640d40f65db.tar.lz
yuzu-b0bca0f8b04de630f9dec47cff14a640d40f65db.tar.xz
yuzu-b0bca0f8b04de630f9dec47cff14a640d40f65db.tar.zst
yuzu-b0bca0f8b04de630f9dec47cff14a640d40f65db.zip
Diffstat (limited to 'src/core/hle/service/nvnflinger/ui')
-rw-r--r--src/core/hle/service/nvnflinger/ui/graphic_buffer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/nvnflinger/ui/graphic_buffer.cpp b/src/core/hle/service/nvnflinger/ui/graphic_buffer.cpp
index ce70946ec..ede2a1193 100644
--- a/src/core/hle/service/nvnflinger/ui/graphic_buffer.cpp
+++ b/src/core/hle/service/nvnflinger/ui/graphic_buffer.cpp
@@ -22,11 +22,13 @@ GraphicBuffer::GraphicBuffer(Service::Nvidia::NvCore::NvMap& nvmap,
: NvGraphicBuffer(GetBuffer(buffer)), m_nvmap(std::addressof(nvmap)) {
if (this->BufferId() > 0) {
m_nvmap->DuplicateHandle(this->BufferId(), true);
+ m_nvmap->PinHandle(this->BufferId(), false);
}
}
GraphicBuffer::~GraphicBuffer() {
if (m_nvmap != nullptr && this->BufferId() > 0) {
+ m_nvmap->UnpinHandle(this->BufferId());
m_nvmap->FreeHandle(this->BufferId(), true);
}
}