Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Redundant line of code in VertexShaderManager::Dirty()
Also cleaned it up.
  • Loading branch information
lioncash committed Jan 11, 2013
1 parent 51a1d4c commit f21f097
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions Source/Core/VideoCommon/Src/VertexShaderManager.cpp
Expand Up @@ -169,14 +169,24 @@ void VertexShaderManager::Shutdown()

void VertexShaderManager::Dirty()
{
nTransformMatricesChanged[0] = 0; nTransformMatricesChanged[1] = 256;
nNormalMatricesChanged[0] = 0; nNormalMatricesChanged[1] = 96;
nPostTransformMatricesChanged[0] = 0; nPostTransformMatricesChanged[1] = 256;
nLightsChanged[0] = 0; nLightsChanged[1] = 0x80;
nTransformMatricesChanged[0] = 0;
nTransformMatricesChanged[1] = 256;

nNormalMatricesChanged[0] = 0;
nNormalMatricesChanged[1] = 96;

nPostTransformMatricesChanged[0] = 0;
nPostTransformMatricesChanged[1] = 256;

nLightsChanged[0] = 0;
nLightsChanged[1] = 0x80;

bPosNormalMatrixChanged = true;
bTexMatricesChanged[0] = bTexMatricesChanged[1] = true;
bTexMatricesChanged[0] = true;
bTexMatricesChanged[1] = true;

bProjectionChanged = true;
bPosNormalMatrixChanged = bTexMatricesChanged[0] = bTexMatricesChanged[1] = true;

nMaterialsChanged = 15;
}

Expand Down

0 comments on commit f21f097

Please sign in to comment.