Fix counter shared pointer getting created with the wrong function.

This commit is contained in:
Skyth 2024-12-03 18:44:58 +03:00
parent 6c65e0914d
commit fe4801b9ff

View file

@ -4515,7 +4515,7 @@ static void EnqueueGraphicsPipelineCompilation(const PipelineState& pipelineStat
if (shouldCompile) if (shouldCompile)
{ {
if (databaseDataHolderPair.counter == nullptr && databaseDataHolderPair.holder.databaseData.get() != nullptr) if (databaseDataHolderPair.counter == nullptr && databaseDataHolderPair.holder.databaseData.get() != nullptr)
databaseDataHolderPair.counter = std::make_unique<DatabaseDataHolder>(std::move(databaseDataHolderPair.holder)); databaseDataHolderPair.counter = std::make_shared<DatabaseDataHolder>(std::move(databaseDataHolderPair.holder));
PipelineStateQueueItem queueItem; PipelineStateQueueItem queueItem;
queueItem.pipelineHash = hash; queueItem.pipelineHash = hash;