From fe4801b9ff06b65051dc70118b5f4038224db005 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Tue, 3 Dec 2024 18:44:58 +0300 Subject: [PATCH] Fix counter shared pointer getting created with the wrong function. --- UnleashedRecomp/gpu/video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index a253eb1..5d55681 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -4515,7 +4515,7 @@ static void EnqueueGraphicsPipelineCompilation(const PipelineState& pipelineStat if (shouldCompile) { if (databaseDataHolderPair.counter == nullptr && databaseDataHolderPair.holder.databaseData.get() != nullptr) - databaseDataHolderPair.counter = std::make_unique(std::move(databaseDataHolderPair.holder)); + databaseDataHolderPair.counter = std::make_shared(std::move(databaseDataHolderPair.holder)); PipelineStateQueueItem queueItem; queueItem.pipelineHash = hash;