Fixed matrices not updated when changing shader
-Ugly fix Former-commit-id: 19140fcf8966b1db9c2c324f4654db77f6a4aeef
This commit is contained in:
parent
c82b2510f0
commit
6301bd8f38
|
|
@ -592,6 +592,10 @@ bool NzRenderer::SetShader(NzShader* shader)
|
|||
s_matrixLocation[nzMatrixCombination_ViewProj] = shader->GetUniformLocation("ViewProjMatrix");
|
||||
s_matrixLocation[nzMatrixCombination_WorldView] = shader->GetUniformLocation("WorldViewMatrix");
|
||||
s_matrixLocation[nzMatrixCombination_WorldViewProj] = shader->GetUniformLocation("WorldViewProjMatrix");
|
||||
|
||||
///FIXME: Peut VRAIMENT être optimisé
|
||||
for (unsigned int i = 0; i < totalMatrixCount; ++i)
|
||||
s_matrixUpdated[i] = false;
|
||||
}
|
||||
|
||||
s_shader = shader;
|
||||
|
|
|
|||
Loading…
Reference in New Issue