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-12-13 22:49:13 +00:00
committed by baldurk
parent ea7475f65f
commit 78c402bb34
+3 -1
View File
@@ -1166,7 +1166,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(ProgramRes(m_GL->GetCtx(), initProg), 0, NULL));
}