Commit 6ce83302 authored by Ken Martin's avatar Ken Martin

Try to fix boundary check error on OSX

Shadow Maps were createing a boundry check error on OSX
parent fda4f717
......@@ -266,9 +266,12 @@ void vtkShadowMapPass::Render(const vtkRenderState *s)
transform->GetMatrix(tmp);
transform->Pop();
tmp->Transpose();
for (int i = 0; i < 16; i++)
for (int i = 0; i < 4; i++)
{
shadowTransforms.push_back(*(tmp->Element[0] + i));
for (int j = 0; j < 4; j++)
{
shadowTransforms.push_back(tmp->Element[i][j]);
}
}
++shadowingLightIndex;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment