From e164ca654e5e3568150c10f6e905a8d5a7c8cfd1 Mon Sep 17 00:00:00 2001 From: Dario Date: Wed, 7 Aug 2024 23:54:46 -0300 Subject: [PATCH] Change the index in the condition. --- src/render/rt64_raster_shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/rt64_raster_shader.cpp b/src/render/rt64_raster_shader.cpp index 6487893..69fcda5 100644 --- a/src/render/rt64_raster_shader.cpp +++ b/src/render/rt64_raster_shader.cpp @@ -544,7 +544,7 @@ namespace RT64 { for (const PipelineCreation &creation : pipelineThreadCreations[threadIndex]) { uint32_t pipelineIndex = pipelineStateIndex(creation.zCmp, creation.zUpd, creation.cvgAdd); - if (threadIndex == 0) { + if (pipelineIndex == 0) { firstPipelineMutex.lock(); pipelines[pipelineIndex] = RasterShader::createPipeline(creation); firstPipelineMutex.unlock();