Create uniform translation table from live prog instead of initial prog.

The table is used on the live program, and we have seen the driver choose
different locations in the initial program due to the TF varyings.
This commit is contained in:
michaelrgb
2017-10-03 14:24:35 +01:00
committed by Baldur Karlsson
parent b66d11086c
commit 73e41e532b
+3 -1
View File
@@ -1181,7 +1181,9 @@ bool GLResourceManager::Serialise_InitialState(ResourceId resid, GLResource res)
gl.glLinkProgram(initProg);
}
SerialiseProgramUniforms(gl, m_pSerialiser, initProg, &details.locationTranslate, false);
GLuint live = GetLiveResource(Id).name;
SerialiseProgramUniforms(gl, m_pSerialiser, live, &details.locationTranslate, false);
CopyProgramUniforms(gl, live, initProg);
SetInitialContents(
Id, InitialContentData(res.Namespace, ProgramRes(m_GL->GetCtx(), initProg), 0, NULL));