mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-09 09:10:49 +00:00
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:
committed by
Baldur Karlsson
parent
b66d11086c
commit
73e41e532b
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user