Change the index in the condition.

This commit is contained in:
Dario 2024-08-07 23:54:46 -03:00
parent 1ec24eeaa9
commit e164ca654e

View File

@ -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();