Redundant line of code in VertexShaderManager::Dirty()

Also cleaned it up.
This commit is contained in:
Lioncash 2013-01-10 21:44:12 -05:00
parent 51a1d4cde7
commit f21f097e7a

View file

@ -169,14 +169,24 @@ void VertexShaderManager::Shutdown()
void VertexShaderManager::Dirty() void VertexShaderManager::Dirty()
{ {
nTransformMatricesChanged[0] = 0; nTransformMatricesChanged[1] = 256; nTransformMatricesChanged[0] = 0;
nNormalMatricesChanged[0] = 0; nNormalMatricesChanged[1] = 96; nTransformMatricesChanged[1] = 256;
nPostTransformMatricesChanged[0] = 0; nPostTransformMatricesChanged[1] = 256;
nLightsChanged[0] = 0; nLightsChanged[1] = 0x80; nNormalMatricesChanged[0] = 0;
nNormalMatricesChanged[1] = 96;
nPostTransformMatricesChanged[0] = 0;
nPostTransformMatricesChanged[1] = 256;
nLightsChanged[0] = 0;
nLightsChanged[1] = 0x80;
bPosNormalMatrixChanged = true; bPosNormalMatrixChanged = true;
bTexMatricesChanged[0] = bTexMatricesChanged[1] = true; bTexMatricesChanged[0] = true;
bTexMatricesChanged[1] = true;
bProjectionChanged = true; bProjectionChanged = true;
bPosNormalMatrixChanged = bTexMatricesChanged[0] = bTexMatricesChanged[1] = true;
nMaterialsChanged = 15; nMaterialsChanged = 15;
} }