Use original ID when returning pipeline state to replay

This commit is contained in:
baldurk
2015-09-21 19:24:23 +02:00
parent 3a8e6a9557
commit 402819b5c7
+2 -2
View File
@@ -1245,10 +1245,10 @@ void VulkanReplay::SavePipelineState()
for(size_t i=0; i < ARRAY_COUNT(stages); i++)
{
stages[i]->Shader = p.shaders[i];
stages[i]->Shader = rm->GetOriginalID(p.shaders[i]);
stages[i]->ShaderDetails = NULL;
stages[i]->customName = false;
stages[i]->ShaderName = StringFormat::Fmt("Shader %llu", p.shaders[i]);
stages[i]->ShaderName = StringFormat::Fmt("Shader %llu", stages[i]->Shader);
stages[i]->stage = ShaderStageType(eShaderStage_Vertex + i);
}